大智慧金牌DDI指标公式

N:=13;N1:=30;M:=10;M1:=5;

TR:=MAX(Abs(H-REF(H,1)),ABS(L-REF(L,1)));

DMZ:=IF((H+L)<=(REF(H,1)+REF(L,1)),0,tr);

DMF:=IF((H+L)>=(REF(H,1)+REF(L,1)),0,tr);

DIZ:=SUM(DMZ,N)/(SUM(DMZ,N)+SUM(DMF,N));

DIF:=SUM(DMF,N)/(SUM(DMF,N)+SUM(DMZ,N));

ddi:DIZ-DIF,COLORstICK,linethick3;

ADDI:SMA(DDI,N1,M),colorwhite,linethick1;

AD:MA(ADDI,M1),coloryellow,linethick1;

v1:=llv(low,10);

v2:=hhv(h,25);

价位线:=ema((c-v1)/(v2-v1)*4,4);

DRAWTEXTABS(5,5,'指标网 www.zhibiaow.com'),linethick1,COLOR00EEff;

DRAWTEXT(crOSS(价位线,0.3),-0.5,'●'),COLORYELLOW;

DRAWTEXT(CROSS(3.5,价位线),1,'●'),COLORYELLOW;