您现在的位置:程序化交易>> 股票公式>> 同花顺>> 同花顺公式>>正文内容

多轨道上轨下轨通道公式源码[同花顺公式]

多轨道上轨下轨通道公式源码 :

 

 

 
 
 
DSTIME1:=IF(DATE>20191030,1,1);
//{主图K线}//www.cxh99.com
STICKLINE(O>C,C,O,9,0 ),ColorFFDE00;
STICKLINE(O>C,C,L,1 ,0 ),ColorFFDE00;
STICKLINE(O>C,O,H,1 ,0 ),ColorFFDE00;
STICKLINE(C>=O,C,O,9 ,1 ),COLOR0000FF;
STICKLINE(C>=O,O ,L ,1.5,0 ),COLOR0000FF;
STICKLINE(C>=O,C,H,1.5,0 ),COLOR0000FF;
短上轨:EMA(H,24)*DSTIME1,colorred;
短下轨:EMA(L,24)*DSTIME1,COLORGREEN;//http://www.cxh99.com
NOTEXT短下轨0:=IF(C>短下轨,短下轨,DRAWNULL),colorred;
NOTEXT短下轨1:=IF(C<短下轨,短下轨,DRAWNULL),COLORGREEN;//http://www.cxh99.com
NOTEXT短上轨0:=IF(C>短上轨,短上轨,DRAWNULL),colorred;
NOTEXT短上轨1:=IF(C<短上轨,短上轨,DRAWNULL),COLORGREEN;//http://www.cxh99.com
STICKLINE(C>短上轨,短上轨,短下轨,0,0),colorred;
STICKLINE(C<短下轨,短上轨,短下轨,0,0),COLORGREEN;//http://www.cxh99.com
短轨差:短上轨-短下轨,NODRAW,coloryellow;
长上轨:EMA(H,90)*DSTIME1,colormagenta;
长下轨:EMA(L,90)*DSTIME1,colorblue;
NOTEXT长下轨0:=IF(C>长下轨,长下轨,DRAWNULL),colormagenta;
NOTEXT长下轨1:=IF(C<长下轨,长下轨,DRAWNULL),colorblue;
NOTEXT长上轨0:=IF(C>长上轨,长上轨,DRAWNULL),colormagenta;
NOTEXT长上轨1:=IF(C<长上轨,长上轨,DRAWNULL),colorblue;
STICKLINE(C>长上轨,长上轨,长下轨,0,0),colormagenta;
STICKLINE(C<长下轨,长上轨,长下轨,0,0),colorblue;
长轨差:长上轨-长下轨,NODRAW,coloryellow;//www.cxh99.com
DRAWNUMBER(REF(C,3)<REF(短下轨,3) OR REF(C,3)<REF(短上轨,3) AND (REF(C,2)<REF(短下轨,2) OR REF(C,2)<REF(短上轨,2)) AND (REF(C,1)<REF(短下轨,1) OR REF(C,1)<REF(短上轨,1)) AND C>短上轨 AND 短上轨<长下轨 AND COUNT(C<短下轨,6)>0,L*0.96,TOSTRING(C,2)),coloryellow;
DRAWNUMBER(REF(C,3)<REF(短下轨,3) OR REF(C,3)<REF(短上轨,3) AND (REF(C,2)<REF(短下轨,2) OR REF(C,2)<REF(短上轨,2)) AND (REF(C,1)<REF(短下轨,1) OR REF(C,1)<REF(短上轨,1)) AND C>短上轨 AND C>长上轨 AND COUNT(C<短下轨,6)>0,L*0.96,TOSTRING(C,2)),coloryellow;
DRAWNUMBER(REF(C,3)<REF(长下轨,3) OR REF(C,3)<REF(长上轨,3) AND (REF(C,2)<REF(长下轨,2) OR REF(C,2)<REF(长上轨,2)) AND (REF(C,1)<REF(长下轨,1) OR REF(C,1)<REF(长上轨,1)) AND C>长上轨 AND C>短上轨 AND COUNT(C<长下轨,6)>0,L*0.96,TOSTRING(C,2)),coloryellow;
DRAWNUMBER(REF(C,3)>REF(短上轨,3) OR REF(C,3)>REF(短下轨,3) AND (REF(C,2)>REF(短上轨,2) OR REF(C,2)>REF(短下轨,2)) AND (REF(C,1)>REF(短上轨,1) OR REF(C,1)>REF(短下轨,1)) AND C<短下轨 AND 短上轨>长上轨 AND C>长下轨 AND COUNT(C>短上轨,6)>0,H*1.04,TOSTRING(C,2)),coloryellow;
DRAWNUMBER(REF(C,3)>REF(短上轨,3) OR REF(C,3)>REF(短下轨,3) AND (REF(C,2)>REF(短上轨,2) OR REF(C,2)>REF(短下轨,2)) AND (REF(C,1)>REF(短上轨,1) OR REF(C,1)>REF(短下轨,1)) AND C<短下轨 AND 短下轨<长下轨 AND COUNT(C>短上轨,6)>0,H*1.04,TOSTRING(C,2)),coloryellow;
DRAWNUMBER(REF(C,3)>REF(长上轨,3) OR REF(C,3)>REF(长下轨,3) AND (REF(C,2)>REF(长上轨,2) OR REF(C,2)>REF(长下轨,2)) AND (REF(C,1)>REF(长上轨,1) OR REF(C,1)>REF(长下轨,1)) AND C<长下轨 AND C<短下轨 AND COUNT(C>长上轨,6)>0,H*1.04,TOSTRING(C,2)),coloryellow;

 

 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

怎么收费,代编流程等详情请点击查阅!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容