HELP : how to compare in-play prices with starting price ?

Please post any questions regarding the program here.

Moderator: 2020vision

HELP : how to compare in-play prices with starting price ?

Postby benny999 » Tue Feb 05, 2008 6:13 pm

Hello.
I would like to place a bet during in-play market only if the price is gone xx tick offset up than the starting price ( or xx ticks down ). How can I do this ?
How can excel "remember" the price at 0 min before off ...so can compare it with in-play prices ?
Thanks for helping for solve the problem...
benny999
 
Posts: 2
Joined: Thu Feb 08, 2007 10:38 pm

Postby mclarens » Thu Feb 07, 2008 2:47 pm

this is not the best ... i am not good with vba and u can thank capt sensible and alistair for the following code

step 1

goto w1 and enter =IF(E2="In Play","in play","")

step 2

right click on sheet 1 tab and press View Code

Cut and paste the following

It is triggered by W1 changing to "in play"

Public bOddsCopied As Boolean
Public sRaceDets As String

Private Sub Worksheet_Calculate()
' Reset the flags if a new race is loaded
If LCase(Range("A1").Value) <> sRaceDets Then
sRaceDets = LCase(Range("A1").Value)
bOddsCopied = False
End If
' Check to see if race has just gone In-Play (status is held in cell W1)
If LCase(Range("W1").Value) = "in play" And bOddsCopied = False Then
' Copy last matched prices into column AH
Application.EnableEvents = False
For theRow = 5 To 44
Range("AH" & theRow).Value = Range("O" & theRow).Value
Next theRow
Application.EnableEvents = True
bOddsCopied = True
End If
End Sub

result last traded price sitting col AH ..... and off you go

It works.
mclarens
 
Posts: 5
Joined: Mon Aug 28, 2006 12:39 pm


Return to Help

Who is online

Users browsing this forum: Bing [Bot] and 30 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.