同花顺搏短MA副图指标
源码
NMACD :8* EMA(MACD,250),LINEDOT,ColorFFFFFF;
DIF1:=EMA(CLOSE,6) - EMA(CLOSE,14);
DEA1:=EMA(DIF1,5);
MACD1:=2*(DIF1-DEA1);
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,8,0),Color0000C4;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,4,0),Color0F0FFF;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2,0),Color2D2DFF;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,8,0),ColorC600C6;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,4,0),ColorFF00FF;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,2,0),ColorFF42FF;
STICKLINE(MACD1<MACD2 AND MACD1>0,0,MACD1,8,0),Color00DDDD;
STICKLINE(MACD1<MACD2 AND MACD1>0,0,MACD1,4,0),Color0BFFFF;
STICKLINE(MACD1<MACD2 AND MACD1>0,0,MACD1,2,0),Color3EFFFF;
STICKLINE(MACD1<MACD2 AND MACD1<0,MACD1,0,8,0),ColorD5D500;
STICKLINE(MACD1<MACD2 AND MACD1<0,MACD1,0,4,0),ColorFBFB00;
STICKLINE(MACD1<MACD2 AND MACD1<0,MACD1,0,2,0),ColorFFFF42;
DIF:DIF1,Color00FBFB;
DEA:DEA1,Color0000F0;
MACD:MACD1,Color26FF26;
强:=IF(DIF1>=DEA1,DIF1,DEA1);
PARTLINE(强,强>REF(强,1),RGB(250,0,255),强<=REF(强,1),RGB(0,250,0)),LINETHICK2;
0,POINTDOT,colorwhite;