ecxel and BA

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

Moderator: 2020vision

ecxel and BA

Postby alrodopial » Sun Feb 20, 2011 10:51 pm

Hi ,
I'm asking this again, Garry / Mark can you post the "order" that ba communicates with excel?
First it updates the bets (4 columns) then the odds (16 columns) etc.

Or if it's hard - does it firstly updates the bets and then the odds?
Thanks
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm

Postby GaryRussell » Mon Feb 21, 2011 10:55 am

It updates the odds and then the bets. I will post a complete list shortly.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby GaryRussell » Mon Feb 21, 2011 11:00 am

You can also get Excel to show you using the worksheet change event. The following code will show you the range being updated.

Code: Select all
Private Sub Worksheet_Change(ByVal Target As Range)
    Debug.Print Target.Address
End Sub
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby alrodopial » Mon Feb 21, 2011 2:09 pm

GaryRussell wrote:It updates the odds and then the bets. I will post a complete list shortly.


That means that any VBA code that is based on odds is executed and after this if any trigger is put in column ..... is checked and the bet is send to BF from BA?

How does BA "understands" that my VBA code is finished so it is now time to check the betting triggers?
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm

Postby GaryRussell » Mon Feb 21, 2011 5:38 pm

When you use VBA code that is based on odds it should look like the following.

Code: Select all
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Columns.Count = 16 Then
       ' your code goes here
    End If
End Sub

The above code executes immediately after the odds are written. Note that it only runs your code if the column count is 16 which is when the odds are written. BA does not need to "understand" that your code has finished. It cannot read or write to Excel while your code is running, it has to wait for it to finish. BA then reads the triggers.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby alrodopial » Mon Feb 21, 2011 7:34 pm

Thanks , I thought it was the other way .

Does the refresh rate - Q2 - updates the same way?
or this one "is checked" before the odds update?
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm

Postby GaryRussell » Tue Feb 22, 2011 11:15 am

alrodopial wrote:Thanks , I thought it was the other way .

Does the refresh rate - Q2 - updates the same way?
or this one "is checked" before the odds update?

Q2 is checked before the odds update.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK


Return to Discussion

Who is online

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