网友求助:
源码:
{n:2,100,14}
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
强势区:100,LINETHICK1,COLORRED;
强弱分水岭:0,LINETHICK1,COLORBLUE;
弱势区:-100,LINETHICK1,COLORGREEN;
请老师写出cci指标上穿强势区时的预警公式,谢谢
解答如下:
{N:2,100,14}
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
强势区:=100 ;
CROSS(CCI,强势区);