TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
T1:=TIME>1430;
T1=1 AND CCI>-100 AND REF(COUNT(CCI<REF(CCI,1),2)=2,1)=1 AND REF(COUNT(CCI<-100,2)=2,1)=1;
公式是使用在30分钟周期下,如果代码提示错误追问追答有重复代码
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
T1:=TIME>1430;
T1=1 AND CCI>-100 AND REF(COUNT(CCI<REF(CCI,1),2)=2,1)=1 AND REF(COUNT(CCI<-100,2)=2,1)=1;