请求老师帮忙将CCI值小于-100时二次拐头向上改成预警公式 以下是CCI代码 参数N:2,100,14 TYP:=(HIGH+LOW+CLOSE)/3; CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)); 谢谢老师,我用的是通达信!!
爱约股解答:
N:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
AA:=CCI<-100;
COUNT(REF(AA,1)<AA,M)=2;
================
{如:5天内CCI值小于-100时二次拐头向上改成预警公式:}
N:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
AA:=CCI<-100;
COUNT(REF(AA,1)<AA,5)=2;