以下是通达信分时主图+macd 分时主图源码
DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26));
DEA:=EMA(DIF,9);
FF1:=(DIF-DEA)*6;
N:=CONST(IF(C>DYNAINFO(3),0.95,1.05));
DRAWBAND(DYNAINFO(3)*N+FF1,RGB(200,0,100),DYNAINFO(3)*N,RGB(0,200,100));
K:=IF(HOUR>12,(HOUR-13)*60+MINUTE+120,(HOUR-9)*60+MINUTE-30);
JJ:=SUM(C*V,K)/SUM(V,K)LINETHICK3,COLORYELLOW;
DI:DIF*3+DYNAINFO(3)*N,COLORWHITE;
DE:DEA*3+DYNAINFO(3)*N,COLORRED;