I inserted this line into the afl code, but unfortunately it did not work. The backtest is still buying shares on the 10th bar...
--- In [email protected], "murthysuresh" <mo...@...> wrote: > > BarIndex() >20 > --- In [email protected], "lucianomt" lucianomt@ wrote: > > > > I�m running a single security backtest. My trailing stop uses a 20-day ATR. The problem is I'm getting buy orders before that, which means I have no stop for 20 days until the ATR calculation kicks in. How to set the backtest to start on the 20th bar? > > > > Sorry for the newbie questions but I am new to AFL and I'm having trouble with Yahoo's search. > > >
