TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,84))/(0.015*AVEDEV(TYP,84));
逃顶线:100,COLORRED,LINETHICK3;
趋势线:CCI,COLORGRAY,LINESTICK,LINETHICK1;
抄底线:-100,COLORWHITE;
DRAWTEXT(CROSS(CCI,-100),-100,'●抄底'),LINETHICK3,COLORRED;
DRAWTEXT(CROSS(100,CCI),100,'●逃顶'),LINETHICK3,COLORGREEN;