飞狐慢速CCI指标公式

时间:2022-03-17 01:58:17    阅读:1110

 input:m(14,1,20),q(3,1,10);
typq:=(hhv(h,q)+llv(l,q)+c)/3;
cciq:(TYPq-MA(TYPq,M*q))/(AVEDEV(TYPq,M*q))*150,linedot,coloryellow;
fillrgn(cciq>150,150,cciq),color3300cc;
fillrgn(cciq<-150,-150,cciq),color339900;
TYP :=(HIGH + LOW + CLOSE)/3;
cci:(TYP-MA(TYP,M))/(AVEDEV(TYP,M))*150,colorcyan;
异动力度:abs(cci),linethick;
偏离度:(TYP-MA(TYP,M)),linethick;
150,colorred;
-150,colorred;
0,colorgreen;

 

关键词: CCI