Good points above Orion....I don't use System Tester at all....but I have noticed that many have commented on some serious flows in the system..
The Original question by techtrader about an Indicator with trailing stop loss...try following one taken from a very good site...
Trailing Stop Indicator III by Adam Hefner
If(cum(1)=1,
{then} Close,
{else} If((C*1.1) <= PREV,
{then}(C*1.1),
{else} PREV));
Or one below....
Trailing Stop by Andrzej Herman
strata:=10;
If(
C=PREV,
PREV,
If(
((Ref(C,-1)<PREV)AND (C<PREV)),
Min(PREV,C*(1+strata/100)),
If(
(Ref(C,-1)>PREV) AND (C>PREV),
Max(PREV,C*(1-strata/100)),
If(
C>PREV,
C*(1-strata/100),
C*(1+strata/100)
)
)
)
)
Or one below...
Stop Loss Indicator by Eric Kendall
periodsshort:=Input("periods if short",1,50,10);
periodslong:=input("periods if long",1,50,10);
HHV(H,periodsshort)-atr(periodsshort);
{stop loss level for short positions}
LLV(L,periodslong)+ATR(periodslong);
{stoploss level for long positions}
Hope this works...note all comments in {} brakets added to the formulae will be ignored by formula...