What is wrong with this condition ?

#1
Buy = (Cross(p,m) AND a > p && a > 25);
Sell =(Cross(m,p) AND a > m && a > 25) ;

Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);


PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorGreen,0,L,-10);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,H,-10);


Some arrow not showing as expected. Is And or && has got some problem ??
 

Similar threads