活用:---老指标MACD做波段简单好用,(主图,源码,附图)介绍
活用:---老指标MACD做波段简单好用,(主图,源码,附图)
MACD是最常用的家喻户晓的指标,简单好用用来做波段,比希里糊嘟竟坐过山车强得多,
主图公式--------------------就是MA加MACD;
MA1:MA(C,5),PRECIS2,LINETHICK2;
MAR:ref(ma1,1),LINETHICK0;
MA2:MA(C,10),PRECIS2;
MA3:MA(C,20),PRECIS2;
MA4:MA(C,30),PRECIS2;
MA5:MA(C,60),PRECIS2;
MA6:MA(C,120),PRECIS2;
现价: if (DYNAINFO(4)=0,C,DYNAINFO(7)),color0077FF,POINTDOT;
X:=BARSLAST(DISPSTATUS=1)+1;
E:=llvall(llv(l,x))*0.95;
DIFF :EMA( EMA(CLOSE,12) - EMA(CLOSE,26),3),COLOR0000FF,LINETHICK0;
DEA : EMA(DIFF,9),COLOR00FF00,LINETHICK0;
MACD : 2*(DIFF-DEA),LINETHICK0;
STICKLINE(MACD>0,E+MACD,E,4,0),Color0000FF;
STICKLINE(MACD<0,E+MACD,E,1,0),Color00FF00;
DRAWGBK(DIFF>DEA,STRIP(RGB(0,0,255),RGB(140,0,80),0)),LAYER0;
VERTLINE(CROSS(REF(WMA(C,13),1),WMA(C,13)) AND MACD>0 ,2),LAYER0,COLOR00FFFF;
副图公式---------------当个股和大盘同步或不同步必需区别对待,副图就是起帮忙作用的,叫你心中有数;
DIFF :EMA( EMA(CLOSE,12) - EMA(CLOSE,26),3),COLOR0000FF;
DEA : EMA(DIFF,9),COLOR00FF00;
MACD : 2*(DIFF-DEA),LINETHICK0;
STICKLINE(MACD>0,MACD,0,2,0),Color0000FF;
STICKLINE(MACD<0,MACD,0,1,0),Color00FF00;
STICKLINE(CROSS(DEA,DIFF),0,DIFF,4,0),COLOR00FF00;
STICKLINE(CROSS(DIFF,DEA),0,DIFF,4,0),COLOR0077FF;
DIFF大盘 :EMA( EMA(INDEXC,12) - EMA(INDEXC,26),3)/100,Color00FFFF,DOTLINE;
DEA大盘 : EMA(DIFF大盘,9),ColorFF9900,DOTLINE;
MACD大盘 := 2*(DIFF大盘-DEA大盘);
STICKLINE(MACD大盘>0,-0.8+MACD大盘,-0.8,2,0),Color00FFFF;
STICKLINE(MACD大盘<0,-0.8+MACD大盘,-0.8,1,0),ColorFF9900;
DRAWGBK(DIFF>DEA AND DIFF大盘>DEA大盘,STRIP(RGB(0,0,255),RGB(140,0,80),0)),LAYER0;
gd17330