way excel updates data

Please post any questions regarding the program here.

Moderator: 2020vision

way excel updates data

Postby alrodopial » Mon Feb 18, 2013 12:30 pm

Hi,
I just realized something that really don't like.
Gary correct me if I'm wrong.

Data in excel:
In every circle first step is to update columns A to P (16 columns)(mostly odds and amounts) and then in second step columns T to X (5 columns)( bet reff,bet time,matched odds and amount,p/l) and this happens again every lets 5secs (refresh rate)

In my code I have the usual (as everybody else I think):
If Target.Columns.Count = 16 Then
my macros here

So if I have a trigger (fired by a macro) that depends ie on bet reff ( ie a previously placed bet that I want to check if and how much it was matched so I can place another bet now), when my trigger (and bet of course) will be placed?
With my current code (everybody's code) it will NOT be placed at the time that odds are updated(16 columns) in the current update but in the next update (after 5secs).This is because my code is running (checking conditions) when the 16columns are updated(first step of the update) but at this point the bet reff has not been updated yet.
If I'm right I will have to change the macros that depend on columns T to X
Gary?
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm

Postby alrodopial » Tue Feb 19, 2013 11:02 am

Gary your thoughts?
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm

Postby GaryRussell » Tue Feb 19, 2013 3:32 pm

Bets can only be triggered once on each refresh because the triggers are only read once. The trigger column is read immediately after the 16 columns are updated so even if you populated the trigger column before the next refresh it would not fire.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby alrodopial » Tue Feb 19, 2013 8:20 pm

GaryRussell wrote:Bets can only be triggered once on each refresh because the triggers are only read once. The trigger column is read immediately after the 16 columns are updated so even if you populated the trigger column before the next refresh it would not fire.


Now this is something that I REALLY believe is wrong and somehow must be changed/fixed
My logic tells me that I want to place a bet when I have ALL the info available - odds, amounts, reff,matched amounts etc -

I guess you can update at once columns A to X - including the columns Q to S that are used from us (triggers,asked odds,asked amounts) even if they contain formulas, conditional format etc.
This way someone must use the
If Target.Columns.Count = 24 Then
in the code
Or even better you can update any additional columns (sp etc) at once.
Then the ie
If Target.Columns.Count = 25 Then
can be used

To make things not complicated you can add in preff the way BA will update columns.Default can be remain the current.

If I remember correctly cell Q2 is also read at the beginning of every update instead of the end of the update (when all calcs are done)
Thanks
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm


Return to Help

Who is online

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