Hi
You could probably do that with a modification to mcbee's maxbank trigger
here.Basically the idea is to increment a user variable only when your global balance increases, and then you take your trailing stop loss off there.
TRIGGER 1
set user variable maxbank, amount
IF(test_mode=1,test_balance,balance) one time only
TRIGGER 2
set user variable maxbank, amount IF(AND(test_mode=1,test_balance>maxbank),test_balance,IF(AND(test_mode=0,balance>maxbank),balance,maxbank))
you would run TRIGGER 2 as a second action in your betting trigger, or repeat it continuously
trailing stop loss condition for your betting trigger:
selections trigger expression IF(test_mode=1,test_balance,balance) is greater than maxbank-100