先研究研究 多空通道 通达信指标 源码 贴图
2018-07-11 09:19:00来源:本站整理浏览:430
先研究研究 多空通道 通达信指标 源码 贴图
XA_1:=MA((IF(CLOSE>OPEN,HIGH-CLOSE,HIGH-OPEN)+IF(CLOSE>OPEN,OPEN-LOW,CLOSE-LOW))/2,60)*1.5;
短上轨:IF(Z=0,EMA(HIGH,T),WMA(HIGH,T)),COLORRED;
短下轨:IF(Z=0,EMA(LOW,T),WMA(LOW,T)),COLORGREEN;
NOTEXT短下轨0:IF(CLOSE>短下轨,短下轨,DRAWNULL),COLORRED;
NOTEXT短下轨1:IF(CLOSE<短下轨,短下轨,DRAWNULL),COLORGREEN;
NOTEXT短上轨0:IF(CLOSE>短上轨,短上轨,DRAWNULL),COLORRED;
NOTEXT短上轨1:IF(CLOSE<短上轨,短上轨,DRAWNULL),COLORGREEN;
STICKLINE(CLOSE>短上轨,短上轨,短下轨,0,0),COLORRED;
STICKLINE(CLOSE<短下轨,短上轨,短下轨,0,0),COLORGREEN;
长上轨:IF(Z=0,EMA(HIGH,TT),WMA(HIGH,TT)),COLORMAGENTA;
长下轨:IF(Z=0,EMA(LOW,TT),WMA(LOW,TT)),COLORBLUE;
NOTEXT长下轨0:IF(CLOSE>长下轨,长下轨,DRAWNULL),COLORMAGENTA;
NOTEXT长下轨1:IF(CLOSE<长下轨,长下轨,DRAWNULL),COLORBLUE;
NOTEXT长上轨0:IF(CLOSE>长上轨,长上轨,DRAWNULL),COLORMAGENTA;
NOTEXT长上轨1:IF(CLOSE<长上轨,长上轨,DRAWNULL),COLORBLUE;
STICKLINE(CLOSE>长上轨,长上轨,长下轨,0,0),COLORMAGENTA;
STICKLINE(CLOSE<长下轨,长上轨,长下轨,0,0),COLORBLUE;
XA_2:=CROSS(CLOSE,短上轨);
XA_3:=CROSS(短下轨,CLOSE);
XA_4:=BARSLAST(XA_2)+1;
XA_5:=BARSLAST(XA_3)+1;
XA_6:=CROSS(SUM(XA_2,XA_5),0.5);
XA_7:=CROSS(SUM(XA_3,XA_4),0.5);
XA_8:=CROSS(CLOSE,长上轨);
XA_9:=CROSS(长下轨,CLOSE);
XA_10:=BARSLAST(XA_8)+1;
XA_11:=BARSLAST(XA_9)+1;
XA_12:=CROSS(SUM(XA_8,XA_11),0.5);
XA_13:=CROSS(SUM(XA_9,XA_10),0.5);
XA_14:=IF(XA_13 AND XA_7,0,IF(XA_13,0,IF(XA_7,6,1)));
DRAWNUMBER(XA_14=6 AND 短下轨>长下轨,HIGH+XA_1*3,6),COLORMAGENTA;
DRAWNUMBER(XA_14=0 AND 短下轨>长下轨,HIGH+XA_1*3,0),COLORMAGENTA;
DRAWNUMBER(XA_6 AND 短下轨>长下轨,LOW-XA_1*3,10),COLORMAGENTA;
XA_15:=IF(XA_12 AND XA_6,10,IF(XA_12,10,IF(XA_6,4,1)));
DRAWNUMBER(XA_15=4 AND 短上轨<长上轨,LOW-XA_1*3,4),COLORMAGENTA;
DRAWNUMBER(XA_15=10 AND 短上轨<长上轨,LOW-XA_1*3,10),COLORMAGENTA;
DRAWNUMBER(XA_7 AND 短上轨<长上轨,HIGH+XA_1*3,0),COLORMAGENTA;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
XA_16:=CLOSE>REF(CLOSE,4);
XA_17:=BARSLASTCOUNT(XA_16);
XA_18:=XA_17=9;
XA_19:=ISLASTBAR AND BETWEEN(XA_17,1,8);
XA_20:=(BACKSET(XA_18>0,9) OR BACKSET(XA_19>0,XA_17))*XA_17;
DRAWNUMBER(XA_20>0,HIGH+XA_1*2,XA_20),COLOR0080FF;
DRAWNUMBER(XA_17=9 AND HIGH>REF(HIGH,2),HIGH+XA_1*2,9),COLORGREEN;
DRAWNUMBER(XA_17=18,HIGH+XA_1*2,18),COLORYELLOW;
TD支撑线:IF(Z=1,DRAWLINE(XA_17=1,LOW,XA_17=9,REF(LOW,8),(-1)),DRAWNULL),DOTLINE,COLORMAGENTA;
XA_21:=CLOSE<REF(CLOSE,4);
XA_22:=BARSLASTCOUNT(XA_21);
XA_23:=XA_22=9;
XA_24:=ISLASTBAR AND BETWEEN(XA_22,1,8);
XA_25:=(BACKSET(XA_23>0,9) OR BACKSET(XA_24>0,XA_22))*XA_22;
DRAWNUMBER(XA_25>0,LOW-XA_1*2,XA_25),COLOR0080FF;
DRAWNUMBER(XA_22=9 AND LOW<REF(LOW,2),LOW-XA_1*2,9),COLORGREEN;
DRAWNUMBER(XA_22=18,LOW-XA_1*2,18),COLORYELLOW;
TD阻力线:IF(Z=1,DRAWLINE(XA_22=1,HIGH,XA_22=9,REF(HIGH,8),(-1)),DRAWNULL),DOTLINE,COLORGREEN;
DRAWICON(XA_17=9 AND (HIGH<REF(HHV(HIGH,8),1) OR CLOSE<OPEN),HIGH+XA_1*4,8);
- 上一篇公式:收益不错的指标 天涯大道至简 通达信指标 源码 贴图
- 下一篇公式:希望大家多多盈利 短线强 通达信指标 源码 贴图