您现在的位置:程序化交易>> 股票公式>> 通达信>> 通达信公式>>正文内容

通达信阿里斯通道 主图指标公式源码[通达信公式]

 

引用的公式源码:

 

 

VAR1:=(C+H+O+L)/4;
AQWE:XMA(VAR1,20)*(1+80/1000);
SQWE:XMA(VAR1,32)*(1-100/1000);

 

 

 

主公式如下源码:

 
预备权重线:EMA(CLOSE,5),COLORRED,LINETHICK1;
 
强弱权重线:EMA(CLOSE,14),COLORYELLOW,LINETHICK1;
STICKLINE(C> REF(C,1) ,H,L,0,1 ),COLORRED;
STICKLINE(C> REF(C,1) ,O,C,3.1,0 ),COLOR000055;
STICKLINE(C> REF(C,1) ,O,C,2.7,0 ),COLOR000088;
STICKLINE(C> REF(C,1) ,O,C,2.1,0 ),COLOR0000AA;
STICKLINE(C> REF(C,1) ,O,C,1.5,0 ),COLOR0000CC;
STICKLINE(C> REF(C,1) ,O,C,0.9,0 ),COLOR0000FF;
STICKLINE(C> REF(C,1) ,O,C,0.3,0 ),COLOR0000EE;
STICKLINE(C< REF(C,1) ,H,L,0,1 ),COLOR666600;
STICKLINE(C< REF(C,1) ,O,C,3.1,0 ),COLOR555500;
STICKLINE(C< REF(C,1) ,O,C,2.7,0 ),COLOR888800;
STICKLINE(C< REF(C,1) ,O,C,2.1,0 ),COLORAAAA00;
STICKLINE(C< REF(C,1) ,O,C,1.5,0 ),COLORBBBB00;
STICKLINE(C< REF(C,1) ,O,C,0.9,0 ),COLORCCCC00;
STICKLINE(C< REF(C,1) ,O,C,0.3,0 ),COLOREEEE00;
STICKLINE(C= REF(C,1) ,H,L,0,1 ),COLORWHITE;
STICKLINE(C= REF(C,1) ,O,C,3.1,0 ),COLOR555555;
STICKLINE(C= REF(C,1) ,O,C,2.7,0 ),COLOR777777;
STICKLINE(C= REF(C,1) ,O,C,2.1,0 ),COLOR999999;
STICKLINE(C= REF(C,1) ,O,C,1.5,0 ),COLORBBBBBB;
STICKLINE(C= REF(C,1) ,O,C,0.9,0 ),COLORDDDDDD;
STICKLINE(C= REF(C,1) ,O,C,0.3,0 ),COLORFFFFFF;
SS1:=1121010;
SS3:=DATE<SS1;
AAA1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.058 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<0.095 AND SS3;
AA2:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.098 AND SS3;
STICKLINE(AAA1,O,C,0,1 ),COLOR9B37FF;
STICKLINE(AAA1,O,C,3,0 ),COLOR6300C6;
STICKLINE(AAA1,O,C,2.7,0 ),COLOR6D00DB;
STICKLINE(AAA1,O,C,2.1,0 ),COLOR7800F0;
STICKLINE(AAA1,O,C,1.5,0 ),COLOR8000FF;
STICKLINE(AAA1,O,C,0.9,0 ),COLOR8F20FF;
STICKLINE(AAA1,O,C,0.3,0 ),COLOR9B37FF;
STICKLINE(AA2,C,O,3,0 ),COLOR00AAFF;
STICKLINE(AA2,C,O,2.1,0 ),COLOR00BBFF;
STICKLINE(AA2,C,O,1.5,0 ),COLOR00CCFF;
STICKLINE(AA2,C,O,1,0 ),COLOR00DDFF;
STICKLINE(AA2,C,O,0.6,0 ),COLOR00EEFF;
STICKLINE(AA2,C,O,0.2,0 ),COLOR00FFFF;
AA1:="AQWE.AQWE#DAY";
BB1:="SQWE.SQWE#DAY";
cxh1:=(CLOSE+HIGH+OPEN+L)/4;
通道上轨:AA1,COLORYELLOW,LINETHICK2;
通道下轨:BB1,COLORRED,LINETHICK2;
风险:=100*(LOW-BB1)/BB1,NODRAW;
幅度:=100*(AA1-BB1)/BB1,NODRAW;
STICKLINE(AA1>L AND AA1<H,AA1,MAX(AA1,MAX(O,C)),3,0),COLORYELLOW;
STICKLINE(AA1>L AND AA1<H,AA1,H,0,0),COLORYELLOW;
STICKLINE(AA1<L,O,C,3,0),COLORYELLOW;
STICKLINE(AA1<L,O,C,1,0),COLORYELLOW;
STICKLINE(AA1<L,H,L,0,0),COLORYELLOW;
STICKLINE(BB1>L AND BB1<H,BB1,MIN(MIN(O,C),BB1),3,0),COLORRED;
STICKLINE(BB1>MIN(CLOSE,O) AND BB1<MAX(CLOSE,O),BB1,MIN(O,C),3,0),COLORRED;
STICKLINE(BB1>H,O,C,3,0),COLORRED;
STICKLINE(BB1>H,H,L,0,0),COLORRED;
 

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

 

 

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

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

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

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

 


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

相关文章

    没有相关内容