I need a set of triggers to implement a trailing stop-loss.
So at the start of each day's betting I want to specify a target profit and a target loss whereupon betting will stop or switch to test mode. The target loss needs to operate on a trailing basis, whereby, if the betting is increasing the starting balance, then the target loss will be applied to the new balance.
This is a common feature of automated betting, but I was unable to find an example in the trigger library. There are some which mention trailing stop-loss but these seem to be for back/lay or lay/back systems.