请问 通达信的ddi指标源码
N:=;N1:=;M:=;M1:=5;TR1:=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;
2024-12-22 21:33
2024-12-22 21:24
2024-12-22 21:15
2024-12-22 20:42
2024-12-22 20:16