Stop Button

Discuss anything related to using the program (eg. triggered betting tactics)

Moderator: 2020vision

Stop Button

Postby chopper » Wed Dec 30, 2009 2:45 pm

Hello,

I'm new to Gruss and plan to start using it for automated trading from excel in the new year.

If I'm in a situation where I need to stop everything suddenly (eg if my position looks wrong or something strange happens in the market) is there a way to do this in one-click?

If not I was thinking I could have a button that if pressed populates the adjacent cell with 'Stop' and then I could have an IF statement which ensures I trade no further. Or maybe someone has a better idea for achieving this?

Would someone mind telling me how I can write a macro that populates a cell with text when a button is pressed and removes this text when the button is pressed again.

Thanks for any help.
User avatar
chopper
 
Posts: 15
Joined: Wed Dec 30, 2009 2:33 pm

Postby jokerjoe » Wed Dec 30, 2009 9:50 pm

To stop everything manually, you'd have to unlink the sheets (Excel menu > Log current prices). You can then green up in one click.

For the button solution you create a button on the sheet, link the button press event to a macro. Said macro changes cell value or formula as desired. Not difficult if you already know VBA.

Actually it's prob easier to just create a checkbox, link that to a cell and that then automatically changes the cell value TRUE/FALSE, no VBA required.
User avatar
jokerjoe
 
Posts: 122
Joined: Wed May 09, 2007 12:00 pm

Postby osknows » Thu Dec 31, 2009 12:54 am

There are many ways to do this depending on how your excel formulas are set up but perhaps the easiest option is to set your bank or stake to zero

You can then record 2 macros, one to set your stake to zero and another to reset. Assign the macros to either a control button or a keyboard short cut such as Ctr+Q
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Re: Stop Button

Postby alrodopial » Fri Jan 01, 2010 3:15 pm

chopper wrote:automated trading from excel


The easiest way to start/stop this is to fire a macro that disables / enables the events in your sheet.

Code: Select all
Sub ENABLE()
    Application.EnableEvents = True
End Sub

Sub DISABLE()
    Application.EnableEvents = False
End Su
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm


Return to Discussion

Who is online

Users browsing this forum: Bing [Bot] and 57 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.