GP1:=18;{1-100}
GP2:=8;{1-100}
N:=30;{1-100}
roc:=(C/REF(C,5)-1)*100;
阈值:IF(PERIOD<5 OR PERIOD=8,GP2,GP1),NODRAW,COLORRED;
周期:IF(PERIOD<5 OR PERIOD=8,N*48,N),NODRAW,COLORGREEN;
脉冲:crOSS(ROC,阈值),COLORWHITE;
双脉冲:IF(COUNT(脉冲,周期)>=2,0.5,0),COLORYELLOW;