同花顺实用MACD操盘副图指标 源码介绍
同花顺实用MACD操盘副图指标 源码
低位蓝线扭头向上买入,高位蓝线扭头向下卖出。
DIF1:=EMA(CLOSE,6) - EMA(CLOSE,13);
DEA1:=EMA(DIF1,5);
MACD1:=2*(DIF1-DEA1);
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1,0),colorred,linethick2;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1,0),colorgreen,linethick2;
STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLORCBCBC0,linethick2;
STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),colorwhite,linethick2;
DIF:dIF1,COLOR33FF33;
DEA:dEA1,coloryellow;
MACD:MACD1,colormagenta;
STICKLINE(DIF1>=DEA1,dIF1,DEA1,4,0),color005fff;
X:=16;
{强:IF(DIF1>=DEA1,DIF1,X=0),COLOR0000XX,LINETHICK2;}
STICKLINE(DIF1<DEA1,DIF1,DEA1,5,0),COLORFF5F00;
gd46984