「翔博精选指标」多空MACD(通达信公式 副图 源码 测试图)
2022-04-04原创 编 辑:翔博软件
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:=(DIF-DEA)*2,COLORSTICK;
STICKLINE((DIF-DEA)*2<0,(DIF-DEA)*2,0,3.5,0),LINETHICK3,COLOR339933;
STICKLINE((DIF-DEA)*2<0,(DIF-DEA)*2,0,2,0),LINETHICK3,COLOR33AA33;
STICKLINE((DIF-DEA)*2<0,(DIF-DEA)*2,0,1,0),LINETHICK3,COLOR33DD33;
STICKLINE((DIF-DEA)*2<0,(DIF-DEA)*2,0,0.5,0),LINETHICK3,COLOR33FF33;
STICKLINE((DIF-DEA)*2>0,0,(DIF-DEA)*2,3.5,0),COLOR000088;
STICKLINE((DIF-DEA)*2>0,0,(DIF-DEA)*2,2,0),COLOR0000AA;
STICKLINE((DIF-DEA)*2>0,0,(DIF-DEA)*2,1,0),COLOR0000DD;
STICKLINE((DIF-DEA)*2>0,0,(DIF-DEA)*2,0.5,0),COLOR0000FF;
STICKLINE((DIF-DEA)*2=0,(DIF-DEA)*2,0,1.5,0),COLOR880088;
STICKLINE((DIF-DEA)*2=0,(DIF-DEA)*2,0,2,0),COLORAA00AA;
STICKLINE((DIF-DEA)*2=0,(DIF-DEA)*2,0,1,0),COLORDD00DD;
STICKLINE((DIF-DEA)*2=0,(DIF-DEA)*2,0,0.5,0),COLORFF00FF;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,3.5,0),COLOR0044AA;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,3.4,0),COLOR0055AA;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,3.2,0),COLOR0066BB;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,3.0,0),COLOR0077BB;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,2.7,0),COLOR0088CC;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,2.4,0),COLOR0099CC;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,2.1,0),COLOR00AADD;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,1.8,0),COLOR00BBDD;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,1.4,0),COLOR00CCEE;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,1.0,0),COLOR00DDEE;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,0.6,0),COLOR00EEEE;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,0.2,0),COLOR00F0F3;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),MACD,0,0.05,0),COLOR00F6F3;