pta(1212-1216)行情回放 外匯指標(biāo)佳慶CHO指標(biāo)和DDI指標(biāo)分...

佳慶
n1:=9;
n2:=21;
m:=14;
MID:=SUM(VOL*(2*CLOSE-HIGH-LOW)/(HIGH+LOW),0);
佳慶:MA(MID,N1)-MA(MID,N2);
MACHO:MA(佳慶,M);
DDI
N:=13;
N1:=30;
M:=10;
M1:=5;
DMZ:=IF((H+L)<=(REF(H,1)+REF(L,1)),0,MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1))));
DMF:=IF((H+L)>=(REF(H,1)+REF(L,1)),0,MAX(ABS(H-REF(H,1)),ABS(L-REF(L,1))));
DIZ:=SUM(DMZ,N)/(SUM(DMZ,N)+SUM(DMF,N));
DIF:=SUM(DMF,N)/(SUM(DMF,N)+SUM(DMZ,N));
DDI:DIZ-DIF;
ADDI:SMA(DDI,N1,M);
標(biāo)簽: