Author Topic: Hedge - Don't work!!!  (Read 28 times)

Tags:
  • All members
  • Posts: 89
  • Gender: Male
Hedge - Don't work!!!
« on: 14 Sep 2026, 09:41 »
Hello.

I have a problem that I can't fix it.

Example:

- Bet a back bet on a horse 1 min before the start at @300.00 (it works ok) - Trigger Bot A

Problem:

I want to close the trade when the horse reaches to @210.00 (don't work) - Trigger Bot A Hedge

Lay      Price 210        Amount (bm_backp*bm_backa)/210


Log Error:

Error in the trigger expression of price or amount for selection "High Degree".

So, the problem is on the price or in the amount formula.

Any help on this?

  • All members
  • Posts: 89
  • Gender: Male
Re: Hedge - Don't work!!!
« Reply #1 on: 14 Sep 2026, 09:43 »
Log Error:

"Error in the trigger expression of price or amount for selection "High Degree"."


  • Moderator
  • Posts: 3728
*
Re: Hedge - Don't work!!!
« Reply #2 on: 14 Sep 2026, 18:35 »
Hi
In the settings for Logger switch on: Log trigger expressions, this will show what is happening in the formula. Best to switch it off again when you have finished because it will use resources.

My guess is if you are using 210 exactly the trigger might might never see it.

a better way which reduces possible errors:

price: lay_price amount: (bm_backp*bm_backa)/lay_price

conditions:
selections back matched is greater than 0
and selections back unmatched is equal to 0
and selections lay price is between 1.01 and 210 

please test carefully in test mode especially with a lay trigger at high prices 
  
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