龙腾四海实战CCI通达信指标 副图 源码附图
TYP:=(H+L+C)/3;
短CCI:((TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14))),COLORWHITE;
NOTEXTA1:DRAWNULL;
NOTEXTA2:DRAWNULL;
NOTEXTA3:DRAWNULL;
NOTEXTA4:DRAWNULL;
长CCI:((TYP-MA(TYP,84))/(0.015*AVEDEV(TYP,84))),COLORRED;
DRAWBAND(短CCI,RGB(255,0,0),-100,RGB(0,255,0));
DRAWBAND(长CCI,RGB(255,0,255),-100,RGB(0,0,255));
DRAWBAND(100,RGB(80,80,80),-100,RGB(0,0,0));
NOTEXT1:0,COLORYELLOW,DOTLINE;{FXJGSWCOM}
NOTEXT2:=-60,COLORYELLOW,DOTLINE;
NOTEXT3:=60,COLORYELLOW,DOTLINE;
DRAWICON(CROSS(短CCI,0),0,1);
DRAWICON(CROSS(短CCI,100),100,34);
DRAWICON(CROSS(100,短CCI),100,2);
NOTEXT4:短CCI,COLORWHITE,LINETHICK2;
NOTEXT5:长CCI,COLORRED,LINETHICK2;
龙腾四海:EMA(200*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3)-100,LINETHICK2,COLORCYAN;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
TYP赋值:(H+L+C)/3
输出短CCI:((TYP-TYP的14日简单移动平均)/(0.015*AVEDEV(TYP,14))),画白色
输出NOTEXTA1:DRAWNULL
输出NOTEXTA2:DRAWNULL
输出NOTEXTA3:DRAWNULL
输出NOTEXTA4:DRAWNULL
输出长CCI:((TYP-TYP的84日简单移动平均)/(0.015*AVEDEV(TYP,84))),画红色
DRAWBAND(短CCI,RGB(255,0,0),-100,RGB(0,255,0))
DRAWBAND(长CCI,RGB(255,0,255),-100,RGB(0,0,255))
DRAWBAND(100,RGB(80,80,80),-100,RGB(0,0,0))
输出NOTEXT1:0,画黄色,DOTLINE
{FXJGSWCOM}
NOTEXT2赋值:-60,画黄色,DOTLINE
NOTEXT3赋值:60,画黄色,DOTLINE
DRAWICON(短CCI上穿0,0,1)
DRAWICON(短CCI上穿100,100,34)
DRAWICON(100上穿短CCI,100,2)
输出NOTEXT4:短CCI,画白色, 线宽为2
输出NOTEXT5:长CCI,画红色, 线宽为2
输出龙腾四海:EMA(200*(C-34日内最低价最低值)/(34日内H最高值-34日内最低价最低值),3)-100, 线宽为2,画青色