通达信MACD全趋势指标公式

YDIF:EMA(CLOSE,240)-EMA(CLOSE,520),NODRAW;
YDEA:EMA(YDIF,180),NODRAW;
macd2:YDIF*2-YDEA,COLORSTICK;
VAR1:=SMA(MacD2,3,1);
VAR2:=EMA(VAR1,3);
VAR3:=(VAR2/REF(VAR2,1)-1)*1000;
STICKLINE(VAR3>0,VAR1,MACD2,2.5,0),COLORRED;
VAR4:=60;
VAR5:=130;
VAR6:=45;
DIF:EMA(CLOSE,VAR4)-EMA(CLOSE,VAR5),NODRAW;
DEA:EMA(DIF,VAR6),NODRAW;
MACD:DIF*2-DEA,COLORSTICK;
STICKLINE(MACD>=0,0,MACD,2.5,0),COLORMAGENTA;
STICKLINE(MACD<0,0,MACD,2.5,0),COLORBLUE;
VAR7:=SMA(MACD,3,1);
ZDIF:EMA(CLOSE,12)-EMA(CLOSE,26),NODRAW;
ZDEA:EMA(ZDIF,9),NODRAW;
VAR8:=ZDIF*2-ZDEA;
VAR9:=SMA(VAR8,3,1);
DRAWBAND(VAR8,RGB(225,97,0),0,RGB(0,255,0));
DRAWBAND(VAR8,RGB(225,255,255),VAR9,RGB(0,255,255));
DRAWBAND(MACD,RGB(225,25,55),VAR7,RGB(25,225,55));
DRAWBAND(MACD2,RGB(225,255,0),VAR1,RGB(61,89,171));
三花选股:IF(VAR8>VAR9 AND MACD>VAR7 AND MACD2>VAR1,1,0),NODRAW;
MCD走强选股:IF(crOSS(VAR9,VAR7) AND MACD>VAR7,0.2,0),NODRAW,COLORYELLOW;
STICKLINE(CROSS(VAR9,VAR7) AND MACD>VAR7,0,MACD2,1,0),COLORYELLOW;
STICKLINE(CROSS(VAR7,VAR1),0,VAR1,1,0),COLORYELLOW;
STICKLINE(CROSS(VAR1,VAR7),0,VAR1,1,0),COLORGREEN;




来函数检测结果如下:
该公式没有未来函数

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

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

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