HX:HHV(HIGH,3);
LX:LLV(LOW,3);
H1:=IF(HX[CLOSE AND (HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0);]
L1:=IF(LX>REF(LX,1)AND LX>REF(LX,3)AND LX>REF(LX,5)AND HX>REF(HX,1)AND HX>REF(HX,2)AND HX>REF(HX,4)AND OPEN0,REF(LX,4),0);
H2:VALUEWHEN(H1>0,H1)COLORWHITE,LINETHICK2;
L2:VALUEWHEN(L1>0,L1)COLORYELLOW;