Author Topic: Ensure only one trigger fires on any single event  (Read 4752 times)

Tags:
  • All members
  • Posts: 80
Hi guys,

I have a trigger file that consists of 8 triggers, three of these are used to place bets. What I would like to do is ensure that only one of the three place bet triggers can place a bets on any particular market.

Can someone please advise what the best way to do this is?

Thanks
Steve

  • Élite
  • Posts: 431
*
Re: Ensure only one trigger fires on any single event
« Reply #1 on: 06 Jan 2015, 07:58 »
You would need to decide which take priority I think.

You could separate them on time so trigger 1 fires say [0.4] minutes before the off, trigger two fires at [0.3] minutes before the off but only if trigger one has not fired, and trigger three fires at [0.1] minutes before the off but only if trigger one and trigger two have not fired.

Would this work for you?  If not try to decide what logic you would like to apply and describe that, then you can set about (or ask others to) writing the trigger.

  • All members
  • Posts: 80
Re: Ensure only one trigger fires on any single event
« Reply #2 on: 06 Jan 2015, 10:39 »
Thanks for the reply.

I have the priorities and conditions of each trigger sorted so that is fine. The issue is that if Trigger 1 fires and places a bet, and then trigger 2 has its conditions change (say a variable changes) I want to say dont place a bet if Trigger 1 or Trigger 3 have already places a bet.

Is there a way of doing this?

Steve

  • Guest
Re: Ensure only one trigger fires on any single event
« Reply #3 on: 06 Jan 2015, 10:54 »
Hi,
try in the conditions box of the trigger

"and selections trigger expression (put in the variable value that has changed) is equal/or not equal to xyz"

See the attached sample trigger. The first trigger performs a bet and sets up a time variable. The second trigger will only perform after the time variable condition is met.

Is that any help to you,

Larp

  • All members
  • Posts: 80
Re: Ensure only one trigger fires on any single event
« Reply #4 on: 08 Jan 2015, 05:54 »
Thanks Larp, thats great.

Steve

 

Please note, BetFair is seems to be currently OFFLINE