以下是通达信阿里斯通道主图指标源码贴图

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

公式都没加密,主公式如下源码:

 预备权重线:EMA(C,5),COLORRED,LINETHICK1;
强弱权重线:EMA(C,14),COLORYELLOW,LINETHICK1;

 STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED;
 STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,3.1,0 ),COLOR000055;
 STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR000088;
 STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR0000AA;
 STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000CC;
 STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000FF;
 STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000EE;

 STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLOR666600;
 STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,3.1,0 ),COLOR555500;
 STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR888800;
 STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLORAAAA00;
 STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBB00;
 STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORCCCC00;
 STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOREEEE00;
 STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE;

 STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3.1,0 ),COLOR555555;
 STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;
 STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;
 STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;
 STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;
 STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;

 SS1:=1121010;
 SS3:=DATE<SS1;

 AAA1:=(C-REF(C,1))/REF(C,1)>=0.058 AND (C-REF(C,1))/REF(C,1)<0.095 AND SS3;
 AA2:=(C-REF(C,1))/REF(C,1)>=0.098 AND SS3;
 STICKLINE(AAA1,O,C,0,1 ),COLOR9B37FF;
 STICKLINE(AAA1,OPEN,CLOSE,3,0 ),COLOR6300C6;
 STICKLINE(AAA1,OPEN,CLOSE,2.7,0 ),COLOR6D00DB;
 STICKLINE(AAA1,OPEN,CLOSE,2.1,0 ),COLOR7800F0;
 STICKLINE(AAA1,OPEN,CLOSE,1.5,0 ),COLOR8000FF;
 STICKLINE(AAA1,OPEN,CLOSE,0.9,0 ),COLOR8F20FF;
 STICKLINE(AAA1,OPEN,CLOSE,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”;
 VAR1:=(C+H+O+L)/4;
通道上轨:AA1,COLORYELLOW,LINETHICK2;
通道下轨:BB1,COLORRED,LINETHICK2;
风险:=100*(L-BB1)/BB1,NODRAW;
幅度:=100*(AA1-BB1)/BB1,NODRAW;
 STICKLINE(AA1>LOW AND AA1<HIGH,AA1,MAX(AA1,MAX(OPEN,CLOSE)),3,0),COLORYELLOW;
 STICKLINE(AA1>LOW AND AA1<HIGH,AA1,HIGH,0,0),COLORYELLOW;
 STICKLINE(AA1<LOW,OPEN,CLOSE,3,0),COLORYELLOW;
 STICKLINE(AA1<LOW,OPEN,CLOSE,1,0),COLORYELLOW;
 STICKLINE(AA1<LOW,HIGH,LOW,0,0),COLORYELLOW;
 STICKLINE(BB1>LOW AND BB1<HIGH,BB1,MIN(MIN(OPEN,CLOSE),BB1),3,0),COLORRED;
 STICKLINE(BB1>MIN(C,O) AND BB1<MAX(C,O),BB1,MIN(OPEN,CLOSE),3,0),COLORRED;
 STICKLINE(BB1>HIGH,OPEN,CLOSE,3,0),COLORRED;
 STICKLINE(BB1>HIGH,HIGH,LOW,0,0),COLORRED;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。