Load next market of quickpicklist at certain conditions

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

Moderator: 2020vision

Load next market of quickpicklist at certain conditions

Postby iceman » Fri Mar 18, 2011 4:44 pm

Hi,

Is it possible when a market is load in excel, to jump to next event of Quickpicklist at certain conditions?
For exemple if a market is load in excel, and there are no money matched, is it possible to load next market?

Thanks anyway
User avatar
iceman
 
Posts: 57
Joined: Sun Feb 14, 2010 5:44 pm

Postby GaryRussell » Fri Mar 18, 2011 4:52 pm

Yes, but you will need to write some vba code to check the conditions and if met insert "-1" into cell Q2 to trigger the market change.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby iceman » Fri Mar 18, 2011 5:25 pm

Ok, I'll wrote the conde in VBA.

Thanks Gary!
User avatar
iceman
 
Posts: 57
Joined: Sun Feb 14, 2010 5:44 pm

Postby GaryRussell » Fri Mar 18, 2011 6:15 pm

You may find you get caught out by it changing market twice instead of once. Once you have inserted "-1" into cell Q2 you need to then wait for the market to change. See http://gruss-software.co.uk/forum/viewtopic.php?t=5163 for an example.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

next market again

Postby iceman » Mon Mar 21, 2011 11:23 am

I have done a code for load nex market, it put -1 in Q2 at certain conditions (Cells(63, 4).Value = "jump"), it works but, when next market is load in excel, probably the -1 remain for a little fraction of seconds, an then the is load next market again.....
Is there any way to solve it? My macro is:


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
        Worksheets("AUS-LayHorse").Activate
        Range("A5:P49") = ""
        'Range("A5:P49").Select
        'Selection.ClearContents
        Range("T5:Z49") = ""
        'Range("T5:Z49").Select
        'Selection.ClearContents
         Range("Q50:S50").Copy Range("Q5:S49")
        'Range("Q50:S50").Select
        'Selection.Copy
        'Range("Q5:S49").Select
        'Range("Q49").Activate
        'ActiveSheet.Paste
       
    If Cells(63, 4).Value = "jump" Then
        [Q2] = -1
    End If
End If
Xit:
Application.Calculation = xlCalculationAutomatic
Application.EnableEvents = True
End Sub
User avatar
iceman
 
Posts: 57
Joined: Sun Feb 14, 2010 5:44 pm

Postby GaryRussell » Mon Mar 21, 2011 12:20 pm

Code: Select all
Cells(63, 4).Value = "jump"

How is this cell being populated with "jump"? Is it done by a formula or code? Could it be that after the market has changed that it still contains "jump" so it inserts "-1" a second time?
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby iceman » Mon Mar 21, 2011 8:13 pm

the controll is with a formula in Sheet, so probably you're right.
When a new market is load the check remain....
I'm trying to solve tihis.
Thanks.
User avatar
iceman
 
Posts: 57
Joined: Sun Feb 14, 2010 5:44 pm


Return to Discussion

Who is online

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