condtn1 = ((H-L) > Ref(ATR(10),-1)*2.5);
condtn2 = (H > Ref(H, -1)) AND (L < Ref(L, -1));
il=L-0.05;
ih=H+0.05;
PlotShapes(IIf(condtn1, shapeSquare, shapeNone),colorGreen, 0, iL, Offset=-40);
PlotShapes(IIf(condtn1, shapeSquare, shapeNone),colorGreen, 0,iL, Offset=-50);
PlotShapes(IIf(condtn1, shapeUpArrow, shapeNone),colorBrightGreen, 0,iL, Offset=-45);
PlotShapes(IIf(condtn2, shapeSquare, shapeNone),colorRed, 0, iL, Offset=-55);
PlotShapes(IIf(condtn2, shapeSquare, shapeNone),colorRed, 0,iL, Offset=-65);
PlotShapes(IIf(condtn2, shapeUpArrow, shapeNone),colorDarkRed, 0,iL, Offset=-60);
CRUDE EXITTED AT 5935 ALREADY AND NOW OUTSIDE BAR SO NO TRADES IN HAND, WAITING