Moderator: 2020vision
by danjuma » Mon Jul 19, 2010 11:56 pm
by Captain Sensible » Tue Jul 20, 2010 8:40 am
by Captain Sensible » Tue Jul 20, 2010 8:47 am
by danjuma » Tue Jul 20, 2010 10:01 am
You need to be allowing the place market time to catch up otherwsie it'll just continue with the win market always looping thru all markets before it eventually matches up again. Whats your code for x1 and I'll see if I knock one up
by Captain Sensible » Tue Jul 20, 2010 12:56 pm
by danjuma » Tue Jul 20, 2010 2:28 pm
Dim win As String
Dim place As String
Dim match As String
Dim counter As Integer
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count <> 16 Then Exit Sub
Application.EnableEvents = False
win = Left(Worksheets("win").Cells(1, 1), 21)
place = Left(Worksheets("Place").Range("A1").Value, 21)
delay = delay + 1
If place = win Then
match = "match"
delay = 0
Else
match = "no match"
End If
If Worksheets("Place").Range("J3").Value <> "L" And match <> "match" And delay = 2 Then
Worksheets("Place").Range("Q2").Value = -1
delay = 0
ElseIf Worksheets("Place").Range("J3").Value = "L" And match <> "match" And delay = 2 Then
Worksheets("Place").Range("Q2").Value = -5
delay = 0
End If
If Range("X2").Value = 0 Then
match = "no match"
Else
counter = counter + 1
End If
If counter > 10 Then
match = "no match"
End If
Application.EnableEvents = True
End Sub
by Captain Sensible » Tue Jul 20, 2010 2:50 pm
by Captain Sensible » Tue Jul 20, 2010 4:08 pm
by danjuma » Tue Jul 20, 2010 4:15 pm
by danjuma » Tue Jul 20, 2010 7:19 pm
by osknows » Tue Jul 20, 2010 7:51 pm
by danjuma » Tue Jul 20, 2010 8:33 pm
Does that make sense??
by Captain Sensible » Tue Jul 20, 2010 8:56 pm
osknows wrote:One suggestion which may help.. if you load place markets in the quickpick list, use vba to cycle through one time only and load the 'event name' and 'market id' in a 2 dimensional array
eg for 10 markets
Dim placemarket(1 to 10, 1 to 2)
when loaded would look something like
Event A, 12345
Event B, 12346
Event C, 12347
.
.
etc
Then in the win market find a match for the event name in the placemarket() array and fetch the market by placing GO:market id for matching market in the array
Eg if Event A is matched place 'GO:12345' in cell Q2 of place sheet
Does that make sense??
by osknows » Tue Jul 20, 2010 10:37 pm
by danjuma » Tue Jul 20, 2010 11:41 pm
Dim lastrace As String
Dim nextracetrigger As Integer
Dim counter As Integer
Private Sub worksheet_Change(ByVal Target As Range)
'only run if arrayloaded and BA 16 column update
If Target.Columns.Count <> 16 Or Not arrayloaded Then Exit Sub
Application.EnableEvents = False
'change place market to match win market
If InStr(1, ThisWorkbook.Sheets("Win").Range("A1").Value, Replace(ThisWorkbook.Sheets("Place").Range("A1").Value, " To Be Placed", ""), vbTextCompare) = 0 Then
arraycount = 0
Do Until InStr(1, ThisWorkbook.Sheets("Win").Range("A1").Value, placemarketarray(arraycount, 0), vbTextCompare) = 1
arraycount = arraycount + 1
Loop
ThisWorkbook.Sheets("Place").Range("Q2").Value = "GO:" & placemarketarray(arraycount, 1)
nextracetrigger = 1
End If
'normal code in here
If Range("x1").Value = 1 And Range("X2").Value = 1 Then
counter = counter + 1
End If
If counter > 10 And Range("J3").Value = "L" Then
counter = 0
Range("Q2").Value = -5
ElseIf counter > 10 Then
counter = 0
Range("Q2").Value = -1
End If
If Range("X1").Value = 1 And Range("X2").Value = 0 Then
If Range("J3").Value <> "L" Then Range("Q2").Value = -1
If Range("J3").Value = "L" Then Range("Q2").Value = -5
End If
Application.EnableEvents = True
End Sub
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.