通达信增强版MACD指标公式

EMA(CLOSE,26);
DEA : EMA(DIFF,9);
MACD : 2*(DIFFREF(MACD,2))*0.17+(MACDHRULER/20;
PT1:=MAX(DIFF,DEA)+HRULER/20;
{
DRAWTEXT(底积将背,0.3,'底积将背'),COLOR00FFFF;
}
DRAWBAND(DIFF,RGB(200,50,55),DEA,RGB(50,100,10));
STICKLINE(底积将背,PT,PTHRULER/20,38),COLORYELLOW;
STICKLINE(底柱将背,PT1,PT1+MIN(底柱程度,5)*HRULER/(4*5),2,0),COLORD33AE9;
DRAWICON(底柱将背,PT1+MIN(底柱程度,5)*HRULER/(4*5)+HRULER/10,1),COLORYELLOW;
DRAWTEXT(底柱背离,PT1+HRULER/8,' 柱背'),COLOR00FFFF;
STICKLINE(底柱背离,PT1,PT1+MIN(底柱程度,5)*HRULER/(4*5),3,0),COLOR0000FF;
DRAWICON(底柱背离,PT1+MIN(底柱程度,5)*HRULER/(4*5)+HRULER/10,34),COLORYELLOW;
DRAWTEXT(底积背离,PTMIN(底背程度,5)*HRULER/(4*5)REF(MACD,2))*0.17+(MACD0.3,2,0),COLOR00FF00;
DRAWTEXT(顶积背离,MIN(顶背程度,5)*HRULER/(4*5)MIN(顶背程度,5)*HRULER/(4*5),3,0),COLOR00FF00;
DRAWICON(顶积背离,PT-MIN(顶背程度,5)*HRULER/(4*5)-HRULER/20,45),COLORYELLOW;
NOTEXTSDIFF:DIFF,COLORWHITE;
NOTEXTSDEA:DEA,COLORYELLOW;
NOTEXTMACDDRAW:MACD, COLORSTICK;

通达信增强版MACD指标公式的选股公式