通达信辨色CCI波段指标公式源码

N:=14;TYP:=(HIGH+LOW+CLOSE)/3;
cci14:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),LINETHICK0;
CCI70:(TYP-MA(TYP,70))/(0.015*AVEDEV(TYP,70)),COLORYELLOW,LINETHICK4;
DRAWTEXT(crOSS(200,CCI14),250,'下穿顶部线'),COLORGREEN;
DRAWTEXT(CROSS(100,CCI14),100,'下穿强势线'),COLORGREEN;
DRAWTEXT(CROSS(CCI14,-200),-150,'上穿极弱线'),COLORYELLOW;
DRAWTEXT(CROSS(CCI14,-100),-100,'上穿底部线'),COLORFF00FF;
STICKLINE(CCI14>0,0,CCI14,1,0),COLORRED;
STICKLINE(CCI14<0,0,CCI14,1,0),COLORLIGREEN;
STICKLINE(CROSS(CCI14,-200) AND CCI14>REF(CCI14,1),CCI14,0,1,0),COLORYELLOW;
STICKLINE(CROSS(200,CCI14) AND CCI14<REF(CCI14,1),0,CCI14,1,0),COLORGREEN;
差:=CCI70-REF(CCI70,1);
IF(差>0,CCI70,DRAWNULL),COLORYELLOW,LINETHICK4;
IF(差<0,CCI70,DRAWNULL),COLORBLUE,LINETHICK4;
顶部线:200,COLORGREEN;
强势线:100,COLORRED,LINETHICK2;
中位线:0,COLORYELLOW,LINETHICK1;
底部线:-100,COLORLIRED;
极弱线:-200,COLORGREEN;
DRAWICON(CROSS(CCI14,-100) OR (REF(CCI14,1)>-100 AND REF(CCI14,1)<-95 AND CCI14>REF(CCI14,1)),CCI14-0.03,1);
DRAWICON(CROSS(100,CCI14) OR (REF(CCI14,1)<100 AND REF(CCI14,1)>95 AND CCI14<REF(CCI14,1)),CCI14+0.03,2);




来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图