AFL for candle crossing

#1
Hi Team
I have the below afl parameter for initiating the Buy signal if the clossing of the candle is above SL line & vice versa..

Buy=Cross(H,sl);
Sell=Cross(sl,L);

How to write the afl if the criteria is to initiate a Buy signal is only on 2 consecutive candles clossing above SL Line & vice versa..

Many Thanks in advance
Rgs MJ
 

Similar threads