LOWV:=LLV(LOW,9);HIGHV:=HHV(HIGH,9);RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);LLW:EMA(RSV,3),COLORWHITE,LINETHICK2;LQR:MA(LLW,3),COLORYELLOW,LINETHICK2;RSVZ:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;PKZ:=SMA(RSVZ,5,1);PDZ:=SMA(PKZ,6,1);PJZ:=3*PKZ-2*PDZ;LX:=PERIOD;ZQ:=IF(LX=5,4,IF(LX=4,4,IF(LX=2,8,4)));DXW:=IF((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),1,0);MR1:=SUM(DXW,ZQ);ZS2:=IF(MR1>0,1,0);RSV1:=(CLOSE - LLV(LOW,18))