Author Topic: condition to not place bets above x liability  (Read 655 times)

Tags:
  • All members
  • Posts: 87
condition to not place bets above x liability
« on: 25 Jul 2020, 13:41 »
Hi, I want to make a condition so that the trigger does not place any bets if the liability exceeds a certain amount. What is the variable I need to use?

  • Moderator
  • Posts: 3605
*
Re: condition to not place bets above x liability
« Reply #1 on: 25 Jul 2020, 19:04 »
Hi
formula for laying to a fixed liability is:
liability/(lay_price -1) = bet amount
e.g. for a liability of 100:
100/(4.2 -1) = 31.25

so you could make a condition:
and selections trigger expression bet amount*(lay_price -1)is equal or less than 100 
e.g. for bet amount of 50
50*(4.2 -1) = 160
the condition will return FALSE 


  
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: 87
Re: condition to not place bets above x liability
« Reply #2 on: 25 Jul 2020, 19:30 »
Thanks Mark,
I can use the 2nd solution you gave.
I wanted to set a limit for the amount the bets can get up to.

 

Please note, BetFair is seems to be currently OFFLINE