macd分时副图指标 通达信公式(附图)

拾荒网 通达信公式 552

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;