通达信七色花开短线及短波段操盘系统 指标源码 测试图

{七色花开均线源码如下}

M1:=5;
M2:=10;
M3:=20;
M4:=30;

{主图}
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
N:=6;
A1:=KDJ.J<100;
A2:=CROSS(DMI.PDI(7,7),DMI.MDI(7,7)) AND TRIX.TRIX(3,3)>TRIX.MATRIX(3,3);
A4:=CAPITAL/1000000<50 ;
A3:=C>SAR.SAR AND (C-SAR.SAR)/SAR.SAR*100>1 AND (C-SAR.SAR)/SAR.SAR*100<=N;
A5:=SUM(HSL,10)<19 AND MACD.MACD>REF(MACD.MACD,1) AND MACD.DIF>REF(MACD.DIF,2);
A6:=IF(C<O,REF(C<O,1),C>O);
A7:=MTM.MTM+0.05>=MTM.MTMMA;
XG:=A1 AND A2 AND A4 AND A3 AND A5 AND A7 AND A6;
T:=BARSLAST(XG);
止盈价:IF(T>0,REF(C,T)*1.1,DRAWNULL),COLORRED,DOTLINE;
止损价:IF(T>0,REF(C,T)*0.9,DRAWNULL),COLORCYAN,DOTLINE;
DRAWICON(T=0,L*0.94,25);
STICKLINE(XG,L,H,0,0),COLORFF00FF;
STICKLINE(XG,CLOSE,OPEN,3,0),COLOR990099;
STICKLINE(XG,CLOSE,OPEN,2.8,0),COLOR990088;
STICKLINE(XG,CLOSE,OPEN,2.5,0),COLOR990077;
STICKLINE(XG,CLOSE,OPEN,2.2,0),COLOR990066;
STICKLINE(XG,CLOSE,OPEN,1.7,0),COLOR990055;
STICKLINE(XG,CLOSE,OPEN,1.2,0),COLORBB00BB;
STICKLINE(XG,CLOSE,OPEN,0.7,0),COLORDD00DD;
STICKLINE(XG,CLOSE,OPEN,0.2,0),COLORFF00FF;



{七色花开主图图源码如下}

{主图}
N:=6;
A1:=KDJ.J<100;
A2:=CROSS(DMI.PDI(7,7),DMI.MDI(7,7)) AND TRIX.TRIX(3,3)>TRIX.MATRIX(3,3);
A4:=CAPITAL/1000000<50 ;
A3:=C>SAR.SAR AND (C-SAR.SAR)/SAR.SAR*100>1 AND (C-SAR.SAR)/SAR.SAR*100<=N;
A5:=SUM(HSL,10)<19 AND MACD.MACD>REF(MACD.MACD,1) AND MACD.DIF>REF(MACD.DIF,2);
A6:=IF(C<O,REF(C<O,1),C>O);
A7:=MTM.MTM+0.05>=MTM.MTMMA;
XG:=A1 AND A2 AND A4 AND A3 AND A5 AND A7 AND A6;
T:=BARSLAST(XG);
止盈价:IF(T>0,REF(C,T)*1.1,DRAWNULL),COLORRED,DOTLINE;
止损价:IF(T>0,REF(C,T)*0.9,DRAWNULL),COLORCYAN,DOTLINE;
DRAWICON(T=0,L*0.94,25);
STICKLINE(XG,L,H,0,0),COLORFF00FF;
STICKLINE(XG,CLOSE,OPEN,3,0),COLOR990099;
STICKLINE(XG,CLOSE,OPEN,2.8,0),COLOR990088;
STICKLINE(XG,CLOSE,OPEN,2.5,0),COLOR990077;
STICKLINE(XG,CLOSE,OPEN,2.2,0),COLOR990066;
STICKLINE(XG,CLOSE,OPEN,1.7,0),COLOR990055;
STICKLINE(XG,CLOSE,OPEN,1.2,0),COLORBB00BB;
STICKLINE(XG,CLOSE,OPEN,0.7,0),COLORDD00DD;
STICKLINE(XG,CLOSE,OPEN,0.2,0),COLORFF00FF;


{七色花开副图源码如下}

{幅图}
N:=6;
A1:=KDJ.J<100;
A2:=CROSS(DMI.PDI(7,7),DMI.MDI(7,7)) AND TRIX.TRIX(3,3)>TRIX.MATRIX(3,3);
A4:=CAPITAL/1000000<50;
A3:=C>SAR.SAR AND (C-SAR.SAR)/SAR.SAR*100>1 AND (C-SAR.SAR)/SAR.SAR*100<=N;
A5:=SUM(HSL,10)<19 AND MACD.MACD>REF(MACD.MACD,1) AND MACD.DIF>REF(MACD.DIF,2);
A6:=IF(C<O,REF(C<O,1),C>O);
A7:=MTM.MTM+0.05>=MTM.MTMMA;
XG:=A1 AND A2 AND A4 AND A3 AND A5 AND A7 AND A6;
STICKLINE(XG,0,8,1.5,0),COLORMAGENTA;




未来函数检测结果如下:
该公式包含未来函数:CAPITAL
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图