通达信仿交易师九转序列和多空通道(源码主图贴图)

[复制链接]
查看403 | 回复0 | 2021-8-20 06:18:34 | 显示全部楼层 |阅读模式

以下是通达信仿交易师九转序列和多空通道(源码主图贴图)(无源码的请下载附件导入)

九转序列
G10:=COUNT(CLOSE>REF(CLOSE,4),10)=10;
G9:=COUNT(CLOSE>REF(CLOSE,4),9)=9 AND  G10=0;
G8:=COUNT(CLOSE>REF(CLOSE,4),8)=8 AND  G9=0;
G7:=COUNT(CLOSE>REF(CLOSE,4),7)=7 AND  G8=0;
G6:=COUNT(CLOSE>REF(CLOSE,4),6)=6 AND  G7=0;
G5:=COUNT(CLOSE>REF(CLOSE,4),5)=5 AND  G6=0;
G4:=COUNT(CLOSE>REF(CLOSE,4),4)=4 AND  G5=0;
G3:=COUNT(CLOSE>REF(CLOSE,4),3)=3 AND  G4=0;
G2:=COUNT(CLOSE>REF(CLOSE,4),2)=2 AND  G3=0;
G1:=CLOSE>REF(CLOSE,4)  AND  G2=0;
D10:=COUNT(CLOSE<REF(CLOSE,4),10)=10;
D9:=COUNT(CLOSE<REF(CLOSE,4),9)=9 AND  D10=0;
D8:=COUNT(CLOSE<REF(CLOSE,4),8)=8 AND  D9=0;
D7:=COUNT(CLOSE<REF(CLOSE,4),7)=7 AND  D8=0;
D6:=COUNT(CLOSE<REF(CLOSE,4),6)=6 AND  D7=0;
D5:=COUNT(CLOSE<REF(CLOSE,4),5)=5 AND  D6=0;
D4:=COUNT(CLOSE<REF(CLOSE,4),4)=4 AND  D5=0;
D3:=COUNT(CLOSE<REF(CLOSE,4),3)=3 AND  D4=0;
D2:=COUNT(CLOSE<REF(CLOSE,4),2)=2 AND  D3=0;
D1:=CLOSE<REF(CLOSE,4)  AND  D2=0;
GG8:=IF(G8=1  AND  REFX(G9=1,1),G8,0);
GG7:=IF(G7=1  AND  REFX(G9=1,2),G7,0);
GG6:=IF(G6=1  AND  REFX(G9=1,3),G6,0);
GG5:=IF(G5=1  AND  REFX(G9=1,4),G5,0);
GG4:=IF(G4=1  AND  REFX(G9=1,5),G4,0);
GG3:=IF(G3=1  AND  REFX(G9=1,6),G3,0);
GG2:=IF(G2=1  AND  REFX(G9=1,7),G2,0);
GG1:=IF(G1=1  AND  REFX(G9=1,8),G1,0);
DD8:=IF(D8=1  AND  REFX(D9=1,1),D8,0);
DD7:=IF(D7=1  AND  REFX(D9=1,2),D7,0);
DD6:=IF(D6=1  AND  REFX(D9=1,3),D6,0);
DD5:=IF(D5=1  AND  REFX(D9=1,4),D5,0);
DD4:=IF(D4=1  AND  REFX(D9=1,5),D4,0);
DD3:=IF(D3=1  AND  REFX(D9=1,6),D3,0);
DD2:=IF(D2=1  AND  REFX(D9=1,7),D2,0);
DD1:=IF(D1=1  AND  REFX(D9=1,8),D1,0);
DRAWTEXT(G9=1,HIGH*1.03,'9'),COLORGREEN;
DRAWTEXT(GG8=1,HIGH*1.03,'8'),COLORWHITE;
DRAWTEXT(GG7=1,HIGH*1.03,'7'),COLORWHITE;
DRAWTEXT(GG6=1,HIGH*1.03,'6'),COLORWHITE;
DRAWTEXT(GG5=1,HIGH*1.03,'5'),COLORWHITE;
DRAWTEXT(GG4=1,HIGH*1.03,'4'),COLORWHITE;
DRAWTEXT(GG3=1,HIGH*1.03,'3'),COLORWHITE;
DRAWTEXT(GG2=1,HIGH*1.03,'2'),COLORWHITE;
DRAWTEXT(GG1=1,HIGH*1.03,'1'),COLORWHITE;
DRAWTEXT(D9=1,LOW/1.03,'9'),COLORRED;
DRAWTEXT(DD8=1,LOW/1.03,'8'),COLORYELLOW;
DRAWTEXT(DD7=1,LOW/1.03,'7'),COLORYELLOW;
DRAWTEXT(DD6=1,LOW/1.03,'6'),COLORYELLOW;
DRAWTEXT(DD5=1,LOW/1.03,'5'),COLORYELLOW;
DRAWTEXT(DD4=1,LOW/1.03,'4'),COLORYELLOW;
DRAWTEXT(DD3=1,LOW/1.03,'3'),COLORYELLOW;
DRAWTEXT(DD2=1,LOW/1.03,'2'),COLORYELLOW;
DRAWTEXT(DD1=1,LOW/1.03,'1'),COLORYELLOW;
短上轨:EMA(H,26),COLORRED;
短下轨:EMA(L,26),COLORRED;
长上轨:EMA(H,89),COLORGREEN;
长下轨:EMA(L,89),COLORGREEN;

多空通道
短上轨:EMA(H,26),COLORRED;
短下轨:EMA(L,26),COLORGREEN;
NOTEXT短下轨0:IF(C>短下轨,短下轨,DRAWNULL),COLORRED;
NOTEXT短下轨1:IF(C<短下轨,短下轨,DRAWNULL),COLORGREEN;
NOTEXT短上轨0:IF(C>短上轨,短上轨,DRAWNULL),COLORRED;
NOTEXT短上轨1:IF(C<短上轨,短上轨,DRAWNULL),COLORGREEN;
STICKLINE(C>短上轨,短上轨,短下轨,0,0),COLORRED;
STICKLINE(C<短下轨,短上轨,短下轨,0,0),COLORGREEN;
长上轨:EMA(H,89),COLORMAGENTA;
长下轨:EMA(L,89),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;
DRAWTEXT((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,'4'),COLORMAGENTA;
DRAWTEXT((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.98,'10'),COLORMAGENTA;
DRAWTEXT((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.98,'10'),COLORMAGENTA;
DRAWTEXT((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,'6'),COLORMAGENTA;
DRAWTEXT((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,'0'),COLORMAGENTA;
DRAWTEXT((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,'0'),COLORMAGENTA;

716388887.png

716388887.png

716488071.png

716488071.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则