Hi,
I have set a variable for maximum stop loss (lay)
maxLay = 20
when my stop loss triggers I want it to take the best available price and not be put straight in at the highest value, would the below formula be correct.
The formula I am trying to create will put a Lay bet into the market at the current lay price plus 2 ticks upto the maxlay of 20, or if the market has passed 20 then 20 will be put into the market.
IF(r_ticks(original_price, 2)<maxlay, (r_ticks(original_price, 2), maxlay)
Regards
James