In play timed bets

Please post any questions regarding the program here.

Moderator: 2020vision

In play timed bets

Postby Roadhouse » Sun Mar 11, 2012 6:17 pm

Hi everyone I'm new to the forum. what I would like to do is only place bets 2seconds after the race goes in play and upto 30seconds in play. Could someone help me please Ive had a look around the forum and cant find something that does this exactly sorry if Ive missed it.
Roadhouse
 
Posts: 98
Joined: Fri Mar 02, 2012 7:01 pm

Postby MarkRussell » Sun Mar 11, 2012 11:16 pm

Hi,

You would need to use Excel triggered betting to do that with Betting Assistant.
Do you have Microsoft Excel?
Can you work with Excel formulas?

Regards,
Mark
User avatar
MarkRussell
Site Admin
 
Posts: 1793
Joined: Tue Feb 20, 2007 6:38 pm
Location: Birmingham

Postby Roadhouse » Mon Mar 12, 2012 1:00 am

Hi Mark Im a newby with excel but Ive learnt bits Im prepared to give it a go I can manage a few formulas
Roadhouse
 
Posts: 98
Joined: Fri Mar 02, 2012 7:01 pm

Postby Captain Sensible » Mon Mar 12, 2012 2:05 pm

Here's a small snippet of vba code I use to log the inplay time, basically it'll log the time the market goes inplay in cell X1 ( just format the cell to time) and display the inplay seconds in cell X2. Bit rough and ready and you just need to incorporate some other code within your 'bot' to clear the values when needed , i.e switching market etc


Code: Select all
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
 
 If Cells(2, 5) = "In Play" Then
If Cells(1, 24) = "" Then Cells(1, 24) = Cells(2, 3)
If Cells(1, 24) <> "" Then Cells(2, 24) = DateDiff("s", Cells(1, 24), Cells(2, 3))
End If


Application.EnableEvents = True

End Sub
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm

Postby Captain Sensible » Mon Mar 12, 2012 2:09 pm

You can then just incorporate the inplay seconds etc into your triggers with simple if statements , greater or equal to >= 2 and less than or equal to =< 30 AND $E$2 ="In Play" etc plus whatever criteria you need
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm

Postby Roadhouse » Mon Mar 12, 2012 4:52 pm

Thats great thankyou Captain it works fine
Roadhouse
 
Posts: 98
Joined: Fri Mar 02, 2012 7:01 pm

Postby Captain Sensible » Mon Mar 12, 2012 5:05 pm

No problem glad to see it worked.

I just use a piece of code gary put up ages ago to clear the timer cells when it switches races. You might find it useful to use to reset any variables if your sheet is automated to move between markets

Code: Select all

Private Sub Worksheet_Calculate()
Static MyMarket As Variant
Application.EnableEvents = False
Application.Calculation = xlCalculationManual
If [A1].Value = MyMarket Then
GoTo Xit
Else
MyMarket = [A1].Value
Range("X1:X2").Value = ""

'insert any additional coding here




End If
Xit:
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
End Sub
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm

Postby Roadhouse » Mon Mar 12, 2012 5:42 pm

great thanks captain I am switching between races thats brilliant exactly what I needed cheers mate
Roadhouse
 
Posts: 98
Joined: Fri Mar 02, 2012 7:01 pm


Return to Help

Who is online

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