模型策略源码:n:=84;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
天线:200,COLORGREEN;
逃顶线:100,COLORRED,LINETHICK3;
趋势线:CCI,COLORGRAY,LINESTICK,LINETHICK1;
零轴线: 0,COLORYELLOW,CIRCLEDOT,LINETHICK1;
抄底线:-100,COLORWHITE;
地线:-200,COLORGREEN;
DRAWTEXT(CROSS(CCI,-100),-100,\●抄底\),LINETHICK3,COLORRED;
DRAWTEXT(CROSS(100,CCI),100,\●逃顶\),LINETHICK3,COLORGREEN;