Get high and low price in play formula??

Please post any questions regarding the program here.

Moderator: 2020vision

Get high and low price in play formula??

Postby Dogoa » Fri Jan 22, 2010 1:02 pm

I was wondering if it is possible to get The high price in play?

I have this code who is supposed to get the low price in play.

=IF(AA5="";"";getLowPriceInPlay(A$1;E$2;F$2;O5))

Could i make something like this?

=IF(AA5="";"";getHighPriceInPlay(A$1;E$2;F$2;O5))

Hope any one can help or maybe show an easy way to do this..
Thanks
Dogoa
 
Posts: 6
Joined: Fri Dec 25, 2009 4:19 pm

Postby Captain Sensible » Fri Jan 22, 2010 1:24 pm

Try adding this to a worksheet , it should stick starting odds in AH , Lowest in AI and highest in AJ. Takes the price from last matched price


Private Sub Worksheet_Change(ByVal Target As Range)
Dim iRow As Integer
Dim iCol As Integer
Dim cell As Object

For Each cell In Target
iRow = cell.Row
iCol = cell.Column


' Update Max and Min Back Values
If Cells(2, 5) = "In Play" And iCol = 15 And iRow > 4 And iRow < 46 Then

Application.EnableEvents = False
If IsEmpty(Range("AJ" & iRow).Value) Then Range("AJ" & iRow).Value = 0
If IsEmpty(Range("AI" & iRow).Value) Then Range("AI" & iRow).Value = 1001
If IsEmpty(Range("AH" & iRow).Value) Then Range("AH" & iRow).Value = Range("O" & iRow).Value

If Not IsEmpty(cell.Value) Then
Range("AG" & iRow).Value = Range("O" & iRow).Value
If cell.Value < Range("AI" & iRow).Value And cell.Value > 1 Then Range("AI" & iRow).Value = cell.Value
If cell.Value > Range("AJ" & iRow).Value And cell.Value < 1001 Then Range("AJ" & iRow).Value = cell.Value
End If

Application.EnableEvents = True
End If



Next cell

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

Postby Captain Sensible » Fri Jan 22, 2010 1:32 pm

If you're just doing it as some data gathering exercise save yourself the bother and download betfairs own data filkes that contain max and min prices matched for pre off and in running

http://promo.betfair.com/betfairsp/prices/
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm

Postby Dogoa » Fri Jan 22, 2010 1:42 pm

Thank you very much.
So far it is just for getting some data. I would like to find out how much the odds change in play. And maybe make some sort of formulas that could help me make a little trade in play.
Dogoa
 
Posts: 6
Joined: Fri Dec 25, 2009 4:19 pm

Postby Steve Voltage » Sat Jan 23, 2010 2:41 pm

Dogoa wrote:Thank you very much.
So far it is just for getting some data. I would like to find out how much the odds change in play. And maybe make some sort of formulas that could help me make a little trade in play.


Don't we all :o
Steve Voltage
 


Return to Help

Who is online

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