通达信量能DDX指标公式

[复制链接]
查看104 | 回复0 | 2021-8-20 00:42:38 | 显示全部楼层 |阅读模式

以下是通达信量能DDX指标公式(无源码的请下载附件导入)

量_价:=1;
 CTKG:=1;
 W:=量_价;
EPSL:=0.0001;
 ZZ:=(C+H+L)/3;
 TJA:=ZZ>=MAX(C,O) AND CTKG=1;
 TJB:=ZZ<=MIN(C,O) AND CTKG=1;
 ZF:=IF(TJA,1,IF(TJB,-1,0));
 TJ0:=TJA OR TJB;
 TJ1:=H=L AND C>REF(C,1);
 TJ2:=H=L AND C<REF(C,1);
 TJ3:=H=L AND C=REF(C,1);
 
量_价:=IF(W=1,VOL,AMOUNT),STICK,COLOREEFFEE;
 EE:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0));
 ZL:=2*(H-L)+ABS(C-O)+3*IF(TJ3,EPSL,ABS(EE));
 JGL_DX:=(IF(TJ0,2/3*(2*C-H-L)+ZF*ABS(C-O),(C-O))+EE)/ZL;
买卖差:=JGL_DX*量_价,COLOR13AADD,NODRAW;
 DX%:JGL_DX*100,NODRAW,COLORGREEN,LINETHICK0;
 DX连红:BARSLASTCOUNT(DX%>0),COLORRED,NODRAW,LINETHICK0;
买盘:=量_价*(1+JGL_DX)/2,COLOR1133AA,NODRAW;
卖盘:=量_价*(1-JGL_DX)/2,COLORFFFF00,NODRAW;
 VAR11:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
 DDX:=买盘-卖盘;
MADDX:=MA(DDX,5)*15;
 DDX1:SMA(MADDX,3,1),COLORRED,LINETHICK1;
 DDX2:SMA(DDX1,3,1),COLORGREEN,LINETHICK1;
 DDX3:SMA(DDX2,3,1),COLORYELLOW,LINETHICK1;

628588047.png

628588047.png

回复

使用道具 举报

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

本版积分规则