Hi all,

I am still new to AB and have been walking through my backtest results (looking 
at the charts) and have some odd results using the ApplyStop function (it exits 
positions a lot earlier than it should). The code is below, does anything stick 
out?

I am wondering if there is some more transparent code that performs the same 
function? I am looking to exit on a Close (or Low) below a trailing stop 
2.5*ATR(15) and sell at the open of the next bar.

SetTradeDelays(0,0,0,0)
Trail = ATR(15) * 2.5; 
ApplyStop( stopTypeTrailing, stopModePoint, Trail,  2, True); 

SellPrice = O;
Sell = 0;

Many thanks in advance
Darcy

Reply via email to