通达信金牌DDI副图指标

2016-03-30 22:50:00来源:本站整理浏览:406

通达信金牌DDI副图指标

源码

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,'●'),COLORYELLOW; DRAWTEXT(CROSS(3.5,价位线),1,'●'),COLORYELLOW;


 


股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式