Q2 -1 triggering some problems, one event jump over ..

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

Moderator: 2020vision

Q2 -1 triggering some problems, one event jump over ..

Postby jossari » Sun May 20, 2012 9:12 am

Hi,

I am using following code to jump next event:
- if market is closed (CELL F2) or if cell value AS18 = 1 (= "my own calculated cell in certain criterias")

The Cell value AS18 will check some other items from next event and if they are TRUE cell AS18 value will be 1 and then I will want to jump next event.

The problem is now, that this code will jump to next race too fast. I mean althoung next event and its cell value AS18 = 0, this code will jump over this event to the next event. This mean that one event will be missed ..

Is there any possibilities, that program will wait so long that cell value AS18 is certainly updated before program will jump out from if-loop?

BR: AH


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

If Range("A1").Value <> NYKYMARKKINA Then marketMUUTTUNUT = False
If Range("F2").Value = "Closed" Or Range("AS18").Value = 1 Then
If Not marketMUUTTUNUT Then

Range("Q2").Value = -1
marketMUUTTUNUT = True

End If

.....
jossari
 
Posts: 21
Joined: Thu Oct 02, 2008 10:37 pm

Postby alrodopial » Sun May 20, 2012 9:51 am

If you change the "Range("Q2").Value = -1
" with the below it will wait for one update
Code: Select all
If Range("Q2").Value = -1 Then
    Range("Q2").ClearContents
Else
    Range("Q2").Value = -1
End If
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm


Return to Discussion

Who is online

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