One way is to start defining the MaxBank variable (showed below) :
uk_balance is for real mode (for this to work in test mode change this to test balance or something). I also saw that this is from MFP-pro trigger but it's almost the same.
---------------------------------------------------
---------------------------------------------------
Set user variable
Name MaxBank Value uk_balance Globally
Conditions are met:
Selection's trigger expressions uk_balance is greater than MaxBank
selections all matching selections
markets all markets
execute no more often than 60 sec
-----------------------------------------------------
-----------------------------------------------------
Do the same for MinBank, but the condition will be the oposite uk_balance<MinBank
Now you will have two variables that you can use as you need, for example as a trailing stop.
PS
For a trailing stop it should be enough with only the MaxBank variable and would look somthing like this:
action: stop the channel
condition: balance<0.7*MaxBank