I'm using Amibroker 4.9. I want to use an indicator to visually
display a trailing stop.  The "//Equity(0)" statement was an earlier
attempt to work this out.  The following code is used on ETF symbol MZZ:

Sell=0;
//Trailing Stop at 7% Loss
ApplyStop(2,1,7,1,False,1);
Equity(1,0);// THIS EVALUATES STOPS  
//Equity(0); 
Plot(Sell==4,"ApplyStop Sell",colorRed,4|styleOwnScale);//4 is for
trailing stops

The recent downturn in the ETF on 1/22/2008 and later dates does not
show a trailing stop. I did show buy signals on 1/16 and 1/17.  Under
Automatic Analysis, I have checked Activate Stops Immediately (Don't
know if this affects an indicator or not. )
Earlier trailing stops on 8/13, 11/14, and 1/10 displayed okay.  

What advice do you have on what to try next?

Reply via email to