Z:=5;
N:=3;
ZQ1:=IF(TOTALBARSCOUNT
ZQ:=IF(CURRBARSCOUNT>ZQ1,0,ZQ1);
XG:IF(ZQ,250,DRAWNULL) COLORRED;
SG:IF(ZQ,734,DRAWNULL) COLORGREEN;
ZX:IF(ZQ,(SG+XG)/2,DRAWNULL) COLORGREEN POINTDOT;
破中趋势变:IF(ZQ,INDEXADV,DRAWNULL)COLORGRAY;
不破趋势延:IF(ZQ,INDEXADV,DRAWNULL) CIRCLEDOT COLORBLUE;
IF(不破趋势延
IF(不破趋势延>SG,INDEXADV,DRAWNULL) CIRCLEDOT COLORGREEN;
波段趋势:IF(ZQ,MA(POW(INDEXADV,1.06),N)-200,DRAWNULL)COLORGREEN LINETHICK3;
IF(波段趋势>REF(波段趋势,1),波段趋势,DRAWNULL) COLORMAGENTA LINETHICK4;
涨数:INDEXADV,NODRAW COLORRED;
跌数:INDEXDEC,NODRAW COLORGREEN;
涨数比:INDEXADV/(INDEXADV+INDEXDEC),NODRAW COLORRED;
IF(CURRBARSCOUNT<140,CONST(INDEXADV),DRAWNULL) DOTLINE COLORLIGRAY;