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.gpxiazai.com'),linethick1,COLOR00EEff; DRAWTEXT(CROSS(价位线,0.3),-0.5,'●'),COLORYELLOW; DRAWTEXT(CROSS(3.5,价位线),1,'●'),COLORYELLOW; |