MACD幅图指标全集,总有一个适合你,选择适合的指标(源码免费)
大家好!今天跟大家分享一些MACD的指标,我们都知道MACD是属于趋势类的指标
但他有拥有一定的市场空间,在我们这个市场中还是有许多的朋友喜欢,那我今天就把我的
私有的MACD指标分享出来,看看你喜欢哪一个
①:公式代码复制过来难免造成部分格式错误。如出现公式导入错误,请及时私信留言笔者领取nt6文件可直接导入!如果对于指标感兴趣或者有疑问的可以与我一起交流学习!指标源码导入就可以使用。
②:创作不易,希望大家对于我的文章能够关注和转发,后期也会给大家分享更多好用的指标以及其他股票知识的!
源码:幅图1
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
MACD
幅图2
DIF:EMA(VOL,SHORT)-EMA(VOL,LONG);
DEA:EMA(DIF,MID);
MACD
幅图3
TJ:=MACD>0;
T:=MACD<0;
A:=LLV(MACD,50)=MACD;
DRAWICON(A AND FILTERX(A,20), MACD,1);
{DRAWTEXT(BARSLAST(TJ)=1,MACD-0.1,'1'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=2,MACD-0.1,'2'),COLORYELLOW;}
DRAWTEXT(BARSLAST(TJ)=3,MACD-0.1,'3'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=5,MACD-0.1,'5'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=8,MACD-0.1,'8'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=13,MACD-0.1,'13'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=21,MACD-0.1,'21'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=34,MACD-0.1,'34'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=55,MACD-0.1,'55'),COLORYELLOW;
{DRAWTEXT(BARSLAST(T)=1,MACD+0.1,'1'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=2,MACD+0.1,'2'),COLORGREEN;}
DRAWTEXT(BARSLAST(T)=3,MACD+0.1,'3'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=5,MACD+0.1,'5'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=8,MACD+0.1,'8'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=13,MACD+0.1,'13'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=21,MACD+0.1,'21'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=34,MACD+0.1,'34'),COLORGREEN;
DRAWTEXT(BARSLAST(T)=55,MACD+0.1,'55'),COLORGREEN;
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD
低位金叉:=CROSS(DIF,DEA) AND DIF<-0.1;
STICKLINE(低位金叉,0,-0.18,0,0),COLORYELLOW;
DRAWTEXT(低位金叉,-0.15,' 低位金叉'),COLORRED;
JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,-0.18,0,0),COLORFF00FF;
DRAWTEXT(二次金叉,-0.3,' 二次金叉'),COLORFF00FF;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA);
STICKLINE(底背离,0,0.13,1,0),COLOR00FF00;
DRAWTEXT(底背离,0.18,' 底背离'),COLOR00FF00;
A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
顶背离:=REF(CLOSE,A2+1)
DRAWTEXT(低位金叉 AND 二次金叉 AND 底背离,0.51,'三重'),COLORYELLOW,LINETHICK1;
DRAWTEXT(低位金叉 AND 底背离,0.31,'二重'),COLORLIBLUE,LINETHICK1;
上翘:IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK1;