Program is betting on both horses!

Please post any questions regarding the program here.

Moderator: 2020vision

Program is betting on both horses!

Postby iantrader » Mon Jan 19, 2015 10:10 pm

Following on from my previous Q...

I have potential horses in the Selections tab. There's only two horses to choose from per race. The selected horse prints a "Y" in the Bet column which is picked up by the Trigger column in the Market tab.

The selection criteria is mutually exclusive so there's no chance the two horses would both print a "Y" at the same time.

However, sometimes odds can fluctuate quickly so it's possible (and, today, likely!!) that the two selections will oscillate rapidly.

The Trigger cell contains this:

IF(AND(Z5="Y",$X$1<2,$E$2="Not In Play"),"BACK","")

Z5 is the result of the "Y" in the Selections tab, $X$1 is the seconds until off.

I've been running this for a few days over probably 90 races and today is the first time the system has backed BOTH selections. And it happen 3 times!

I can only assume that between the $X$1<2 and $E$2="Not in Play" that the selection criteria switched so the system backed both horses.

Is there an easy way to prevent this?

Ideally, I want to the system to select the horse whose criteria fits as near to the Off as possible.

Thanks.
Ian
iantrader
 
Posts: 18
Joined: Fri Jan 16, 2015 8:37 pm

Re: Program is betting on both horses!

Postby Captain Sensible » Tue Jan 20, 2015 1:21 am

Without knowing the coding you use to select maybe the easiest option is to add extra criteria to your trigger so it'll only fire if no bets have been placed, easily done by just using COUNTA which will count non blank cells in the bet ref column

so something like

=IF(AND(Z5="Y",$X$1<2,$E$2="Not In Play",COUNTA(T5:T50)=0),"BACK","")
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm

Re: Program is betting on both horses!

Postby iantrader » Tue Jan 20, 2015 10:42 am

Ah, thank you kindly.

Trying that now!
Ian
iantrader
 
Posts: 18
Joined: Fri Jan 16, 2015 8:37 pm

Re: Program is betting on both horses!

Postby iantrader » Tue Jan 20, 2015 7:31 pm

Hmm... Well, that was odd. It didn't place ANY bets.

I was out all day and didn't see what was going on.

Will recheck everything.
Ian
iantrader
 
Posts: 18
Joined: Fri Jan 16, 2015 8:37 pm

Re: Program is betting on both horses!

Postby Captain Sensible » Tue Jan 20, 2015 7:52 pm

COUNTA($T$5:$T$50)=0 would just count the number of blank columns in the Bet Reference column (assuming your starting cell is A1) , as long as you're clearing those cells on market changes that wouldn't cause it to stop betting
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm

Re: Program is betting on both horses!

Postby iantrader » Tue Jan 20, 2015 8:10 pm

Yes.

But think I've spotted an error in the sheet so will test again tomorrow!

Thanks.
Ian
iantrader
 
Posts: 18
Joined: Fri Jan 16, 2015 8:37 pm


Return to Help

Who is online

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