同花顺强力指数CCI公式源码[同花顺公式]
TYP:=(H+L+C)/3;
CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),LINETHICK0;
DRAWTEXT(CROSS(200,CCI),250,'下穿200'),COLORGREEN;//http://www.cxh99.com
DRAWTEXT( CROSS(CCI,-200),-150,'上穿-200'),coloryellow;
DRAWTEXT( CROSS(CCI,-100),-100,'上穿-100'),COLORFF00FF;
STICKLINE(CCI>0,0,CCI,1,0),colorred;
STICKLINE(CCI<0,0,CCI,1,0),colorligreen;
STICKLINE(CROSS(CCI,-200) AND CCI>REF(CCI,1),CCI,0,1,0),coloryellow;
DRAWTEXT_FIX(C>O,0.001,0.001,0,'代编写服务QQ:511411198 公众号:A26206'),COLORWHITE;
DRAWTEXT_FIX(C>O,0.001,0.001,0,'代编写服务QQ:511411198 公众号:A26206'),COLORWHITE;
STICKLINE(CROSS(200,CCI) AND CCI<REF(CCI,1),0,CCI,1,0),COLORGREEN;//http://www.cxh99.com
CCI70:(TYP-MA(TYP,70))/(0.015*AVEDEV(TYP,70)),coloryellow,LINETHICK2;
差值:=CCI70-REF(CCI70,1);
//www.cxh99.com
IF(差值>0,CCI70,DRAWNULL),coloryellow,LINETHICK2;
IF(差值<0,CCI70,DRAWNULL),colorblue,LINETHICK2;
逃顶线:200,COLORGREEN;//http://www.cxh99.com
强势线:100,colorred,LINETHICK2;
趋势线:CCI,colorgray,LINESTICK,LINETHICK1;
中轴线:0,coloryellow,LINETHICK1;
抄底线:-100,colorwhite;
弱势线:-200,COLORGREEN;//http://www.cxh99.com
DRAWICON(CROSS(CCI,-100) OR (REF(CCI,1)>-100 AND REF(CCI,1)<-95 AND CCI>REF(CCI,1)),CCI-0.03,1);
DRAWICON(CROSS(100,CCI) OR (REF(CCI,1)<100 AND REF(CCI,1)>95 AND CCI<REF(CCI,1)),CCI+0.03,2);
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容