Triggers not following rules correctly

Please post any questions regarding the program here.

Moderator: 2020vision

Triggers not following rules correctly

Postby doris_day » Sat Jul 03, 2010 3:09 pm

I've designed a couple of new triggers which aren't functioning correctly, not because of the rules or incorrect logic but because possibly my PC can't keep pace.

So this is a question aimed at those that understand more than me about how fast Excel and a PC can process data.

Each trigger has no more than the following IF(AND(1,2,3,4,5) rules. I have a dual core 2.8MHz PC running XP Pro and would have thought it could have kept pace without a problem. However, quite often, I know from watching the data (like the countdown clock) that a rule is not being obeyed and a bet is being triggered when it shouldn't be.

Any ideas would be helpful.....
'He was looking for the card so high and wild he'd never need to deal another' - Leonard Cohen
User avatar
doris_day
 
Posts: 968
Joined: Fri Nov 02, 2007 12:34 am

Postby GaryRussell » Sat Jul 03, 2010 3:30 pm

I really don't think speed has got anything to do with it. It's absolutely impossible for "AND" to evaluate true if 1,2,3,4,5 aren't true. I think you should check the rules again.

You could try logging the cells that the rules reference in the Worksheet_Calculate event. For example.
Code: Select all
Private Sub Worksheet_Calculate()
    If [Q5] = "BACK" Then
        Debug.Print "In play status:" & [E2]
    End If
End Sub
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby mak » Sat Jul 03, 2010 3:36 pm

Doris without being an expert i don't believe speed is the problem here..
mak
 
Posts: 1086
Joined: Tue Jun 30, 2009 8:17 am

Postby doris_day » Sat Jul 03, 2010 3:45 pm

That's interesting as my first thought was speed. I'll try the logging route and see what happens. Thanks for the help.
'He was looking for the card so high and wild he'd never need to deal another' - Leonard Cohen
User avatar
doris_day
 
Posts: 968
Joined: Fri Nov 02, 2007 12:34 am

Postby doris_day » Sat Jul 03, 2010 3:50 pm

I think that another possibility is that Betfair are taking so long to match bets that they sometimes dont appear in Excel for quite a few seconds after being placed and therefore give the impression they've just been placed when it may have been a few seconds earlier.

Will I be happy once Wimbledon and the World Cup are over ? Bloody hell, yes I will because I think Betfair have been tinkering with their back office system to help stablise their system.

Hopefully things will be returned to normal once these competitions are over......
'He was looking for the card so high and wild he'd never need to deal another' - Leonard Cohen
User avatar
doris_day
 
Posts: 968
Joined: Fri Nov 02, 2007 12:34 am

Postby GaryRussell » Sat Jul 03, 2010 4:25 pm

doris_day wrote:I think that another possibility is that Betfair are taking so long to match bets that they sometimes dont appear in Excel for quite a few seconds after being placed and therefore give the impression they've just been placed when it may have been a few seconds earlier.

Will I be happy once Wimbledon and the World Cup are over ? Bloody hell, yes I will because I think Betfair have been tinkering with their back office system to help stablise their system.

Hopefully things will be returned to normal once these competitions are over......

Does the transaction log under the account menu agree with this? The response time is shown in the transaction log and should also be a few seconds longer than you would expect.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby doris_day » Sat Jul 03, 2010 5:25 pm

Good point. Sadly I never looked at the transaction log prior to the WCup, so I'll monitor it from now and see what happens.
'He was looking for the card so high and wild he'd never need to deal another' - Leonard Cohen
User avatar
doris_day
 
Posts: 968
Joined: Fri Nov 02, 2007 12:34 am


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 31 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.