Author Topic: last_lost question  (Read 1796 times)

Tags:
  • All members
  • Posts: 12
last_lost question
« on: 21 Jun 2014, 14:40 »
So I have a trigger that is using last_lost to calculate stake. The trigger does what it should but on occasion, it doesn't work. The reason is when you have a race that starts a little late. If that race runs and loses, while the next race is still running and wins, then there is no last_lost. Is there anyway around this?

thanks

nick

  • Moderator
  • Posts: 3597
*
Re: last_lost question
« Reply #1 on: 21 Jun 2014, 21:01 »
Hi
last_lost is a win/lose history variable and therefore requires the previous triggered event's status to be settled. Add a condition block to the betting trigger:
AND
     trigger <betting trigger name> number of runs is equal to 0 overall
     or previous triggered events status is settled
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 12
Re: last_lost question
« Reply #2 on: 22 Jun 2014, 11:46 »
would that prevent the next betting event from happening at all until the previous bet is settled?

  • Moderator
  • Posts: 3597
*
Re: last_lost question
« Reply #3 on: 22 Jun 2014, 12:12 »
Hi
Yes. To determine if the previous bet won or lost the previous betting event needs to be settled. The condition block prevents betting in subsequent markets until the previous betting event is settled.
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

 

Please note, BetFair is seems to be currently OFFLINE