Author Topic: Not trigger a bet when the lead has changed  (Read 1858 times)

Tags:
  • All members
  • Posts: 23
Not trigger a bet when the lead has changed
« on: 07 May 2015, 13:59 »
Hey guys,

I am writing a horse racing trigger that I want to fire when the favourite at the start of the race meets certain qualifications. But also I want this trigger to NOT bet if at any point during the race the favourite loses it's first place in the rank and then comes back to favourite.

I have the whole remember thing down, but this lead change is what bothers me. Who can help me out? I remember seeing it once in either the forum or factory installed triggers, but I cannot find it.

  • Guest
Re: Not trigger a bet when the lead has changed
« Reply #1 on: 07 May 2015, 14:11 »
Hi,

there are several ways of not re-betting on a selection.

For example the condition

AND trigger "yourbetfiringtriggername"number of runs per selection is equal to 0.


larp

  • All members
  • Posts: 23
Re: Not trigger a bet when the lead has changed
« Reply #2 on: 07 May 2015, 14:21 »
Thank you Larp but that's not what I meant. I will try to be more clear in the example.

Horse Fav at start ... not yet betting
Favourite horse at start meets requirements ... bet

That's how it is now, I want it to be:
Horse Fav at start ... not yet betting
Favourite horse at start meets requirements ... bet
BUT if favourite horse was not favourite at any time during the race ... don't bet

Is this a better way to explain it? I know my English is not the best :)

  • All members
  • Posts: 347
Re: Not trigger a bet when the lead has changed
« Reply #3 on: 07 May 2015, 14:30 »
I have a trigger like this running at the moment..

this may or may not be the right way of doign it by i am set a user variable at the start of the race and setting it to be the id of the horse thats the fav

then in play you can set a condition to make sure the id of the current fav is the same as the user set variable we did before in play.

  • Guest
Re: Not trigger a bet when the lead has changed
« Reply #4 on: 07 May 2015, 15:24 »
AH thats a different scenario.

Fav before start, not yet betting.

the same Fav at/after start, not yet betting.

Then if that same fav drifts out to rank 2 or greater, disable it from ever becoming a bet.

Or bet on it when it stays fav at all times and meets other conditions.

I am attaching a test trigger that fires every 10 seconds, 40 seconds after  the off if the fav is always the spfav. Its a bit ugly, but its all I have time for right now.
Test it out first.
Larp

  • All members
  • Posts: 23
Re: Not trigger a bet when the lead has changed
« Reply #5 on: 07 May 2015, 17:07 »
Thank you Larp,

I will test it out tomorrow as my day is fast aproaching it's end!
If anyone else has idea's, keep em coming!

 

Please note, BetFair is seems to be currently OFFLINE