Op = MA(O,5); Hi = MA(H,5); Lo = MA(L,5); Cl = MA(C,5); e = MA(Hi-Lo,5);
PlotOHLC(Op,Hi,Lo,Cl,"",colorDefault,styleCandle);
PK = Ref(Hi,-4) < Ref(Hi,-3) AND Ref(Hi,-3) < Ref(Hi,-2) AND Ref(Hi,-2) > Ref(Hi,-1) AND Ref(Hi,-1) > Hi;
TR = Ref(Lo,-4) > Ref(Lo,-3) AND Ref(Lo,-3) > Ref(Lo,-2) AND Ref(Lo,-2) < Ref(Lo,-1) AND Ref(Lo,-1) < Lo;
PlotShapes(PK*2,colorWhite,0,Hi);
PlotShapes(TR*1,colorWhite,0,Lo);
// THIS NEXT 2 LINES OF CODE LOOKS INTO FUTURE
PlotShapes(Ref(PK,2)*21,colorWhite,0,Hi,12);
PlotShapes(Ref(TR,2)*21,colorWhite,0,Lo);
// BEST TO PLOT THIS ON A SEPERATE PANE
Plot(MA(Hi-Lo,5),"",colorRed,styleOwnScale);