If you want two bars of positive signal before you enter a trade, you can do 
something like:

PrelimBuy = <condition>

Buy = PrelimBuy AND Ref(PrelimBuy,-1)

This will only initiate a BUY if PrelimBuy is true for two consecutive bars

D.

--- In [email protected], "prasantaroy36" <prasantaro...@...> wrote:
>
> 
> 
> --- In [email protected], "prasantaroy36" <prasantaroy36@> wrote:
> >
> > Dear friends
> > 
> > After fulfill buy & short  condition, trade will be done after 2nd bar 
> > closing price from signal bar if valid still signal generated condition. 
> > So, what will be the afl logic for backtesting purpose?
> > Pl,guide.
> > 
> > Thanks
> >
> 
> 
> 
> Pl, help
>


Reply via email to