N:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
cci:=(TYP-ma(TYP,N))/(0.015*AVEDEV(TYP,N)),COLOR808000;
买入:CREF(LLV(CCI,20),1) AND CCI<-110 AND REF(LLV(CCI,20),1)<-150;
N:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
cci:=(TYP-ma(TYP,N))/(0.015*AVEDEV(TYP,N)),COLOR808000;
买入:CREF(LLV(CCI,20),1) AND CCI<-110 AND REF(LLV(CCI,20),1)<-150;