Time triggers

Please post any questions regarding the program here.

Moderator: 2020vision

Time triggers

Postby andyh » Thu Feb 08, 2007 10:23 pm

Hi all, newbie to this forum and very impressed so far. A quick question is it possible to trigger a bet using the time cell D2 so I can match odds 5 mins before the off. I have googled time formats etc in Excel but became a little unstuck as I am unsure of the 'live' nature of the time in D2. Can I treat it as a particular format when an an IF function for example?

Cheers

Andy
andyh
 
Posts: 21
Joined: Thu Feb 08, 2007 11:24 am

Postby andyh » Thu Feb 08, 2007 10:26 pm

Apologies, I think I've just found the answer in another post!

Cheers

Andy
andyh
 
Posts: 21
Joined: Thu Feb 08, 2007 11:24 am

Postby andyh » Sat Feb 10, 2007 12:04 pm

Hi, I did find my answer to the above but am now a little stuck at triggering a bet 5 mins before the off within set odds, eg between 2 and 12. I thought I may have cracked it with the line below but this doesn't seem to work. Anybody any ideas? I'm off to but and Excel book this afternoon!

=IF(AND(TEXT(NOW(),"hh:mm:ss")="11:03:00",2<H5<=12),"LAY","waiting")

Cheers

Andy
andyh
 
Posts: 21
Joined: Thu Feb 08, 2007 11:24 am

Postby Castillo » Sat Feb 10, 2007 1:24 pm

andyh wrote:Hi, I did find my answer to the above but am now a little stuck at triggering a bet 5 mins before the off within set odds, eg between 2 and 12. I thought I may have cracked it with the line below but this doesn't seem to work. Anybody any ideas? I'm off to but and Excel book this afternoon!

=IF(AND(TEXT(NOW(),"hh:mm:ss")="11:03:00",2<H5<=12),"LAY","waiting")

Cheers

Andy


Andy

I convert the time to a decimal, and then trigger to bet below the decimal figure, see below.

If you enter =(D2-INT(D2))*24 in Cell Y2 for example then in your trigger cell Q5 add

=IF(AND(F5>=2,F5<=12,Y2<0.0833),"BACK","WAIT")

5 mins is equal to 0.0833, so if the odds in cell F5 are equal to or between 2 and 12 and the time is less than
5 mins to the off a bet will be made.

Other people might do it differently, but I hope this helps.

Cheers
Castillo
Castillo
 
Posts: 346
Joined: Thu Mar 16, 2006 11:01 am

Postby andyh » Sat Feb 10, 2007 4:23 pm

Hi Castillo, thanks for the swift reply. Am I right in thinking that the line you provided me would place multiple bets for all the times below 0.0833? Could I change the change it to read Y2=0.0833 to trigger the single bet?

Thanks again

Andy



=IF(AND(F5>=2,F5<=12,Y2<0.0833),"BACK","WAIT")
andyh
 
Posts: 21
Joined: Thu Feb 08, 2007 11:24 am

Postby Castillo » Sat Feb 10, 2007 4:44 pm

andyh wrote:Hi Castillo, thanks for the swift reply. Am I right in thinking that the line you provided me would place multiple bets for all the times below 0.0833? Could I change the change it to read Y2=0.0833 to trigger the single bet?


Andy

This will only place 1 bet, the Bet Ref would need to be cleared using the CLEAR command for another bet to take place.
To be absolute certain only one bet gets placed you can add W5=0,T5=0,U5=0 to the formula which means the Bet Ref, Bet Time & Matched Stake field must all be clear before a bet is placed. Once a bet is placed the trigger will return to the WAIT command because there will be entries in W5,T5 & U5, see below.

=IF(AND(F5>=2,F5<=12,Y2<0.0833,W5=0,T5=0,U5=0),"BACK","WAIT")

Cheers
Castillo
Castillo
 
Posts: 346
Joined: Thu Mar 16, 2006 11:01 am

Postby andyh » Sat Feb 10, 2007 4:56 pm

Thanks Castillo, you've been a great help.

Andy
andyh
 
Posts: 21
Joined: Thu Feb 08, 2007 11:24 am

Postby knot » Tue Feb 13, 2007 10:08 pm

having tried the formulas on this thread all i can make happen is #VALUE appear in Y2 when the bet is to be placed. where am i going wrong? please help. :(
knot
 
Posts: 196
Joined: Sun Feb 04, 2007 9:51 pm
Location: leicester

Postby Castillo » Wed Feb 14, 2007 10:23 am

knot wrote:having tried the formulas on this thread all i can make happen is #VALUE appear in Y2 when the bet is to be placed. where am i going wrong? please help. :(


Hi Knot

After the race time expires it does change to #VALUE!
From your other post I see that you want to back a selection if the odds are between 2 and 10 at 2 mins before the off.
(2 mins = 0.0333) so the formula would be something like this

=IF(AND(F5>=2,F5<=10,Y2<0.0333),"BACK","WAIT")

This should trigger a bet when the clock is below 2 mins before the off, and the selection is between or equal to odds of 2 & 10.
By using =(D2-INT(D2))*24 in cell Y2 as the clock is counting down, is it showing a decimal figure?

Hope this helps
Cheers
Castillo
Castillo
 
Posts: 346
Joined: Thu Mar 16, 2006 11:01 am

Postby andyh » Sat Feb 17, 2007 1:08 pm

I have successfully used the lines suggested above for a few days but then came unstuck yesterday when a non runner was removed and my lay bet was placed on the next horse who duly won! I have searched the other topics and read about the use of a secondary sheet to validate the name of the horse to ensure this doesn't happen but I was wondering if anybody has used a line similar to those mentioned above but with the manual insertion of the horse name ( no lookup to a secondary sheet) in the trigger line.

I appreciate all the help from those whose knowledge far outwieighs my own!

Andy
andyh
 
Posts: 21
Joined: Thu Feb 08, 2007 11:24 am

Postby knot » Sat Feb 17, 2007 5:40 pm

im trying to back all horses at certain odds using these formulas having set BA to auto start of 2 mins each race. sometimes the bets trigger sometimes they dont and sometime half the bets trigger :evil: could anybody please tell me why this is. thank you :shock:
knot
 
Posts: 196
Joined: Sun Feb 04, 2007 9:51 pm
Location: leicester

Postby GaryRussell » Sat Feb 17, 2007 6:22 pm

knot wrote:im trying to back all horses at certain odds using these formulas having set BA to auto start of 2 mins each race. sometimes the bets trigger sometimes they dont and sometime half the bets trigger :evil: could anybody please tell me why this is. thank you :shock:


I am revising the code that places triggered bets at the moment. I will improve the error reporting which should enable you to see why the bets weren't placed.
User avatar
GaryRussell
Site Admin
 
Posts: 9871
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby knot » Sat Feb 17, 2007 11:16 pm

Hi Gary do you think it could of been due to refresh rate being to high? it was set at 1.0, now i have set it to 3.0 and it seems better :) do you recommend a refresh rate for excel? Also is it somehow possible to pick only certain races for auto start?
knot
 
Posts: 196
Joined: Sun Feb 04, 2007 9:51 pm
Location: leicester

Postby knot » Sun Feb 18, 2007 8:55 pm

ok it has nothing to do with the refesh rate as the same situation has happened today :evil: hit and miss if the bet is placed. i would be very grateful if anybody could advise me on this thanks :roll: i missed out on some good winners today, does anybody eles have problems triggering multiple bets at the same time?
knot
 
Posts: 196
Joined: Sun Feb 04, 2007 9:51 pm
Location: leicester

Postby knot » Sun Feb 18, 2007 9:50 pm

think ive sorted it just needed to stagger the trigger times a little :D
knot
 
Posts: 196
Joined: Sun Feb 04, 2007 9:51 pm
Location: leicester

Next

Return to Help

Who is online

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