L1:=IF(ISLASTBAR=1 AND FROMOPEN>0,DYNAINFO(10)/FROMOPEN*(200+FROMOPEN/6),IF(C>O,AMOUNT,AMOUNT/2));
L2:=IF(PERIOD=5,IF(ISLASTBAR=1 AND FROMOPEN<0.1,DRAWNULL,DMA(L1,0.05)),DRAWNULL);
L3:=IF(PERIOD=5,IF(ISLASTBAR=1 AND FROMOPEN<0.1,DRAWNULL,MA(L2,10)),DRAWNULL);
L4:=IF(ISLASTBAR=1 AND FROMOPEN<30,200*(L2/L3-1)/3,100*(L2/L3-1));
RSV:=(C-LLV(L,99))/(HHV(H,99)-LLV(L,99))*100-50;
ZJ1:IF(PERIOD=3,SMA(RSV,30,1),L2);
ZJ2:IF(PERIOD=3,SMA(ZJ1,9,1),L3);
IF(PERIOD=3,0,DRAWNULL),POINTDOT,COLORWHITE;
DRAWBAND(ZJ1,RGB(255,0,0),ZJ2,RGB(0,255,0));