N:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
cci:(TYP-ma(TYP,N))/(0.015*AVEDEV(TYP,N)),COLOR808000;
买入:=C REF(LLV(C,50),1)OR L REF(LLV(L,50),1)AND CCI REF(LLV(CCI,20),1)AND CCI -110 AND REF(LLV(CCI,20),1) -150;
信号:stICKLINE(买入,150,-150,2,0),COLOR0000FF;
涨:(C-REF(C,BArslAST(买入)))*100/C;
顶:150,COLOR80FF00;
中:0;
底:-150,COLORFF80FF;
STICKLINE(CCI 150,150,CCI,1,0), COLORGREEN;
STICKLINE(CCI -150,-150,CCI ,1,0), COLORRED;