N1:=5;N2:=30;M:=6;
0,COLORYELLOW;
MD:=SUM(vol*(2*C-H-L)/(H+L),0);
CM1:=MA(MD,N1);
CM2:=MA(MD,N2);
{ _通达信股票指标公式}
MMD:(CM1-CM2)*0.01,COLORWHITE;
IF(MMD>0,MMD,DRAWNULL),COLORRED;
IF(MMD<0,MMD,DRAWNULL),COLORGREEN;
MacHO:MA(MMD,M),COLORCYAN;
DRAWICON(crOSS(MMD,MACHO),MMD,17);