wait for races to be processed

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

Moderator: 2020vision

wait for races to be processed

Postby easternpromise » Tue Aug 10, 2010 4:23 pm

I would like to bet on all of the days horse races, but with a full bank each time and have no bets unprocessed.

because the races may start every 5-10 mins, this is difficult.

Is there a way to set up BA or my spreadsheet to only bet if the previous race has been processed?

Thanks
easternpromise
 
Posts: 82
Joined: Wed Feb 13, 2008 7:38 pm

Postby silver » Tue Aug 10, 2010 5:14 pm

Within your trigger formula, you can refer to the cell which shows exposure - I think it's L2. If that's zero, you have no unsettled bets.
silver
 
Posts: 42
Joined: Thu Sep 03, 2009 10:50 am

Postby silver » Tue Aug 10, 2010 6:25 pm

I should add that you will probably need to include some VBA code to frequently update the balance/exposure data in your sheet. As default, I think this only updates when a new market loads - which will not be sufficiently often. Entering U in cell J2 requests the update, but because BA overwrites the cell each time, you cannot do this with a normal sheet formula.
silver
 
Posts: 42
Joined: Thu Sep 03, 2009 10:50 am

VBA for balance/exposure update

Postby easternpromise » Wed Aug 11, 2010 9:01 am

Hi All,

On the back of silver's reply.

Can anyone help me with a VBA code for frequently updating balance/exposure data ?
easternpromise
 
Posts: 82
Joined: Wed Feb 13, 2008 7:38 pm

Postby sjaak1943 » Wed Aug 11, 2010 9:40 am

Why not use 2 or more spreadsheets and spread the races?
I also use the resultsheet "RESULT_NOT_AVAILABLE" in F2 no bet.
sjaak1943
 
Posts: 174
Joined: Tue Oct 31, 2006 9:50 pm
Location: Schagen, the Netherlands

Postby silver » Wed Aug 11, 2010 11:17 am

Code: Select all
Private Sub Worksheet_Change(ByVal Target As Range)

 
If Target.Columns.Count = 16 Then
Application.EnableEvents = False

    ThisWorkbook.Sheets(1).Range("J2").Value = "U"
   
Application.EnableEvents = True
End If

End Sub


The code above presumes that Betting Assistant is logging to the first sheet in your workbook and that you are logging to the default A1 cell. You can adapt the bracketed number after 'Sheets' and the J2 cell reference if those presumptions are wrong.

You'll need to open the VBA editor and on the left hand side you will see a list including a folder called Microsoft Excel Objects. Double click the Object which has the name of the worksheet that Betting Assistant logs to and paste the code above in to the main window.

That's it - you can close the VBA editor.

You will know its working if J2 = U when BA is logging.

I'm presuming that you haven't already got other code in there. If you have, then don't paste the code above in - further changes will probably be necessary to get it all to work together.

VBA is something I'm a beginner with myself, so if anyone has advice to add / corrections to make, please do!
silver
 
Posts: 42
Joined: Thu Sep 03, 2009 10:50 am

Postby silver » Wed Aug 11, 2010 11:31 am

With regard to finding the Microsoft Excel Objects folder etc, provided you are viewing the sheet Betting Assistant logs to when you open the VBA editor (keyboard shortcut to open is Alt+F11), the main window that appears should be the one relevant to that sheet, so no need to find it in the list in that case.
silver
 
Posts: 42
Joined: Thu Sep 03, 2009 10:50 am

Postby easternpromise » Wed Aug 11, 2010 12:34 pm

Thanks silver I'll give it a go
easternpromise
 
Posts: 82
Joined: Wed Feb 13, 2008 7:38 pm


Return to Discussion

Who is online

Users browsing this forum: No registered users and 33 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.