KG1:=20;F1:=10;A1:=10;A2:=10;A3:=ZIG(1,A1);A4:=PEAK(1,A1,1); A5:=TROUGH(1,A1,1);CC:=IF((A3 < (REF(A3,1))),A4,A5),NODRAW,LINETHICK2;点:CC>REF(CC,1) OR CC<REF(CC,1);正距:=BARSLAST(点),NODRAW,LINETHICK2;倒距:=IF(BARSNEXT(点=1)=DRAWNULL,CURRBARSCOUNT,BARSNEXT(点=1)),NODRAW;A6:=OSS((A4 - 0.02),A3);A7:=CROSS(A3,(A5 + 0.02));A8:=A2 / 100;A9:=IF((A3 < (REF(A3,1))),A8,REVERSE(A8));A10:=IF((A3 < (REF(A3,1))),A6,A7);H1:=REF((CC * (1 - (A9 * 1))),BARSLAST(A10)),DOTLINE,LINETHICK0;H2:=REF((CC * (1 - (A9