Trigger firing time

Please post any questions regarding the program here.

Moderator: 2020vision

Trigger firing time

Postby Elf » Wed Sep 12, 2018 6:41 am

In Excel, how do I set a time for the trigger to fir?. EG: I have a trigger that if it meets certain criteria I want it to place a LAY bet at 1 second before scheduled start time.
Elf
 
Posts: 13
Joined: Thu Aug 30, 2018 11:37 pm

Re: Trigger firing time

Postby MarkRussell » Wed Sep 12, 2018 8:53 am

Hi,

In a spare cell, for example AA1 use the following Excel formula to display number of seconds until the Official Off time:-
Code: Select all
=IF(LEFT(D2)<>"-",(HOUR(D2)*3600)+(MINUTE(D2)*60)+SECOND(D2),-((HOUR(SUBSTITUTE(D2,"-",""))*3600)+(MINUTE(SUBSTITUTE(D2,"-",""))*60)+SECOND(SUBSTITUTE(D2,"-",""))))


Then in your trigger, you can use an IF statement to check the seconds in AA1, for example:-
Code: Select all
=IF(AA1<=1,"LAY","")


And let's say, you wanted to check multiple criteria, for example you also want to check that the lay price is less than 2.0, then you can use the AND function in your IF statement:-
Code: Select all
=IF(AND(AA1<=1,H5<2),"LAY","")

Regards,
Mark
User avatar
MarkRussell
Site Admin
 
Posts: 1787
Joined: Tue Feb 20, 2007 6:38 pm
Location: Birmingham

Re: Trigger firing time

Postby Elf » Wed Sep 12, 2018 12:15 pm

Many Thanks for your prompt reply.
Elf
 
Posts: 13
Joined: Thu Aug 30, 2018 11:37 pm


Return to Help

Who is online

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