以下是同花顺搏短MA副图指标
同花顺搏短MA副图指标
源码
NMACD :8* EMA(MACD,250),LINEDOT,CulorFFFFFF;
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),Culor0000C4;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,4,0),Culor0F0FFF;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2,0),Culor2D2DFF;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,8,0),CulorC600C6;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,4,0),CulorFF00FF;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,2,0),CulorFF42FF;
STICKLINE(MACD1<MACD2 AND MACD1>0,0,MACD1,8,0),Culor00DDDD;
STICKLINE(MACD1<MACD2 AND MACD1>0,0,MACD1,4,0),Culor0BFFFF;
STICKLINE(MACD1<MACD2 AND MACD1>0,0,MACD1,2,0),Culor3EFFFF;
STICKLINE(MACD1<MACD2 AND MACD1<0,MACD1,0,8,0),CulorD5D500;
STICKLINE(MACD1<MACD2 AND MACD1<0,MACD1,0,4,0),CulorFBFB00;
STICKLINE(MACD1<MACD2 AND MACD1<0,MACD1,0,2,0),CulorFFFF42;
DIF:DIF1,Culor00FBFB;
DEA:DEA1,Culor0000F0;
MACD:MACD1,Culor26FF26;
强:=IF(DIF1>=DEA1,DIF1,DEA1);
PARTLINE(强,强>REF(强,1),RGB(250,0,255),强<=REF(强,1),RGB(0,250,0)),LINETHICK2;
0,POINTDOT,colorwhite;
评论(0)