Author Topic: calculate %50 of lay stake and calculate the odds needed to equal liability expo  (Read 995 times)

Tags:
  • All members
  • Posts: 98
  • Karma: +1/-1
After a race has started I want to make a trigger that will calculate 50% of the stake in the current laybet, it must then use a formula that calculate the neccessary back odds required for this 50% to return or equal the total liability of the current laybet, then place the back bet with a fill instruction that the bet does not get matched if the odds move out or higher then 50% of the calculated odds. Hopefully this range of lay and back bets will clarify what I am trying to achieve:
Lay £20 @ 1.2....back £10 @ 1.4
Lay £20 @ 1.5....back £10 @ 2.
Lay £20 @ 1.6....back £10 @ 2.2
Lay £20 @ 1.8....back £10 @ 2.6
Lay £20 @ 2.......back £10 @ 3
Lay £20 @ 2.4....back £10 @ 3.8
Lay £20 @ 2.6....back £10 @ 4.2  
Lay £20 @ 3.......back £10 @ 5
Lay £20 @ 4.......back £10 @ 7
Thanks