Dear Sir, I somehow messed up with this simple logic. Buy: if Close> Parabolic SAR in 30 min then if close> parabolic SAR in 10 min SELL:if Close< Parabolic SAR in 30 min then if close< parabolic SAR in 10 min The AFL code follows:
TimeFrameSet(in1Minute * 30); A=SAR(0.02,0.2); Cond1=C>SAR(0.02,0.2); Cond2=C<SAR(0.02,0.2); TimeFrameRestore(); K = TimeFrameExpand(A, in1Minute * 30); Cond3=C>SAR(0.02,0.2); Cond4=C<SAR(0.02,0.2); Plot(K, "K", colorRed, styleDots ); Buy=Cond1 AND Cond3; Sell=Cond2 AND Cond4; Buy=ExRem(Buy,Sell); Sell=ExRem(Sell,Buy); Regards, M D KUMAR