Author Topic: Max and min prices in lay trigger?  (Read 3337 times)

Tags:
  • All members
  • Posts: 9
Max and min prices in lay trigger?
« on: 31 Jul 2023, 22:35 »
Hello, I have a working trigger for lay bets where the price is less than 1.99, and it works fine.  The price is set as a constant the_price with a 1.99 value.

However, I would like to add a second price of, say, 1.05 as the lowest price and get the trigger to only lay when the current price is between those two constants.  How do I add the 1.05 so that everything continues to work properly?

Thank you.  (Learning curve)

  • Moderator
  • Posts: 3606
*
Re: Max and min prices in lay trigger?
« Reply #1 on: 01 Aug 2023, 07:24 »
Hi and welcome
add another constant and call it say low_price, value: 1.05
add a condition to the laying trigger:
and selections lay price is between low_price and the_price

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: 9
Re: Max and min prices in lay trigger?
« Reply #2 on: 01 Aug 2023, 10:20 »
That's great thanks.  I read through the online help manual but could not find that.

 

Please note, BetFair is seems to be currently OFFLINE