MACD三周期 通达信副图指标 源码 贴图
TDXSTEP141:DRAWGBK(OPEN 0,RGB(33,47,58),RGB(0,0,0),0,10,0);月DIF:EMA(CLOSE,223)-EMA(CLOSE,479);
月DEA:EMA(月DIF,135);
月DB:=MACD.DIF#MONTH;
月AB:=MACD.DEA#MONTH;
TDXSTEP142:DRAWBAND(月DEA,RGB(0,30,0),月DIF,RGB(50,0,0));
TDXSTEP143:DRAWICON(CROSS(月DB,月AB),月DEA,1);
TDXSTEP144:DRAWICON(CROSS(月AB,月DB),月AB,2);
周DIF:MA(MACD.DIF#WEEK,5);
周DEA:MA(MACD.DEA#WEEK,5);
周DB:=MACD.DIF#WEEK;
周AB:=MACD.DEA#WEEK;
TDXSTEP145:DRAWBAND(周DEA,RGB(0,80,0),周DIF,RGB(140,10,70));
TDXSTEP146:DRAWICON(CROSS(周DB,周AB),周DEA,1);
TDXSTEP147:DRAWICON(CROSS(周AB,周DB),周AB,2);
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORWHITE;
DEA:EMA(DIF,9),COLORYELLOW;
MACD:2*(DIF-DEA),COLORSTICK;