大智慧金牌DDI指标公式

[复制链接]
查看132 | 回复0 | 2021-8-21 13:51:06 | 显示全部楼层 |阅读模式

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

202108211243.jpg

202108211243.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则