N:=13;
N1:=30;
M:=10;
M1:=5;
TRX:=MAX(Abs(H-REF(H,1)),ABS(L-REF(L,1)));
DMZ:=IF((H+L)<=(REF(H,1)+REF(L,1)),0,TRX);
DMF:=IF((H+L)>=(REF(H,1)+REF(L,1)),0,TRX);
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);
DRAWTEXT(crOSS(价位线,0.3),-0.5,'▲'),colorlired;
DRAWTEXT(CROSS(3.5,价位线),1,'◆'),colorliblue;