N:=120;
XA_1:=100;
XA_2:=2;
MA10:MA(CLOSE,10);
MA21:MA(CLOSE,21);
MA30:MA(CLOSE,30);
MA60:MA(CLOSE,60);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
XA_3:=BArslAST(crOSS(BacKSET(ISLASTBAR,LLVBARS(LOW,XA_1)+1),0.5));
前期低点:IF(XA_3 =0,REF(LOW,XA_3),DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(CROSS(BACKSET(ISLASTBAR,LLVBARS(LOW,XA_1)+1),0.5),CLOSE,OPEN,2,0),COLORYELLOW;
XA_4:=REFV(LOW,XA_3);
XA_5:=Abs(LOW/XA_4-1)*100 XA_2;
DRAWICON(XA_5,LOW,23);