Hi
Please try the attached amended trigger file in test mode.
I have added some additional relevant conditions now I can see the context of the stoploss usage.
Just a note on testing observation. Where the price moves very quickly towards the end of a race, the delay and the second check works against you. By the time the second check is completed and the stoploss fires, the lay prices are sometimes around 500 or higher. I would say this trigger will work better in longer length races.