TR1:=MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1)));
DMZ:=IF((H+L)<=(REF(H,1)+REF(L,1)),0,MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1))));
DMF:=IF((H+L)>=(REF(H,1)+REF(L,1)),0,MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1))));
DDZ:=SUM(DMZ,13)/(SUM(DMZ,13)+SUM(DMF,13));
DDF:=SUM(DMF,13)/(SUM(DMF,13)+SUM(DMZ,13));
{爱约股-股票公式网站 }
ZX:DDZ-DDF,COLORSTICK;
MZX:=SMA(ZX,30,10);
AD:=MA(MZX,30);
KX:EMA(C,7)-EMA(C,19),COLORWHITE;
MX:=EMA(KX,9);
DX:2*(KX-MX),COLORCYAN;
XC:DX-KX,COLORGREEN;
DRAWICON(CROSS(XC,KX),XC,39);
DRAWICON(CROSS(DX,KX),KX,38);