N:=5;RSVP:=(C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100-50;KV:=(RSVP,3,1);DV:=SMA(KV,3,1);JV:=3*KV-2*DV;ZDZK1:=EMA(JV,6);ZDZK2:=REF(ZDZK1,1);XW1:=IF(O<=REF(O,1),0,MAX((H-O),(O-REF(O,1))));XW2:=IF(O>=REF(O,1),0,MAX((O-L),(O-REF(O,1))));XW3:=SUM(XW1,21);XW4:=SUM(XW2,21);XW5:=IF(XW3>XW4,(XW3-XW4)/XW3,IF(XW3=XW4,0,(XW3-XW4)/XW4));{14天}RS:=SMA(MAX(C-REF(C,1),0),14,1)/SMA(A(C-REF(C,1)),14,1)*100;ZD:=EMA(EMA(EMA(RS,7),3),3);ZD1:=(ZD-REF(ZD,1))/REF(ZD,1)*15;STICKLINE(ZD1>=0,0,ZD1*50,0.5,0),COLOR0000BE;STI