通达信MACD狂生指标公式

DIF1:=EMA(CLOSE,36)-EMA(CLOSE,78);
DEA1:=EMA(DIF1,27);
macd1:=2*(DIF1-DEA1);
MacD2:=EMA(MACD1,3),COLORCYAN;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0.5,1),COLORLIRED;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,0.5,1),COLORYELLOW;
STICKLINE(MACD1<MACD2,0,MACD1,0.5,1),COLORLIBLUE;
DIF:=EMA(CLOSE,24)-EMA(CLOSE,52);
DEA:=EMA(DIF,18);
MACD:=(DIF-DEA)*2;
DIf10:EMA(CLOSE,72)-EMA(CLOSE,156),COLORRED;
DEA10:EMA(DIF10,54),COLORGREEN;
DIF0:=EMA(CLOSE,24)-EMA(CLOSE,52),COLORWHITE;
DEA0:=EMA(DIF,18),COLORYELLOW;
底拐:DRAWLINE(DIF>=HHV(DIF,21),DIF,DIF<=LLV(DIF,21),DIF,0),COLORGREEN,crOSSDOT;
顶拐:DRAWLINE(DIF<=LLV(DIF,21),DIF,DIF>=HHV(DIF,21),DIF,0),COLORYELLOW,,CROSSDOT;
DRAWICON(底拐=LLV(DIF,21),底拐*0.97,23);
DRAWICON(顶拐=HHV(DIF,21),顶拐*1.03,14);
DIFX:EMA(CLOSE,12)-EMA(CLOSE,26),COLORWHITE;
DEAX:EMA(DIFX,9),COLORYELLOW;
MACDX:(DIFX-DEAX)*2,COLORSTICK;
LL3:=MA(C,18)LINETHICK2,COLORRED;
LL1:=EMA(C,220)LINETHICK2,COLORRED;
空:=EMA(C,3);
均衡:=EMA(空,3),COLORWHITE;
中轨:=HHV(MA(H,13),13),COLORYELLOW,LINETHICK1;
VAR5:=FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND C>REF(C,1),11);
DRAWTEXT(VAR5 AND LL3>REF(LL3,1) AND C>=LL3 AND C>LL1,DIF1*0.9985,'加仓'),COLORYELLOW;
DRAWICON(VAR5,DIF*0.995,15);
DRAWTEXT(VAR5 AND LL3>REF(LL3,1) AND C>=LL3 AND C<LL1,DIF1*0.9985,'反弹'),COLORLIMAGENTA;
BN:=zig(3,8);
GN:=REF(ZIG(3,8),1);
ZXCV:CROSS(REF(ZIG(3,8),1),ZIG(3,8))*0.1,COLORGREEN,LINETHICK2;
ZXC1:CROSS(ZIG(3,8),REF(ZIG(3,8),1))*0.1,COLORMAGENTA,LINETHICK2;




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

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

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