大智慧胜似DDX指标公式

[复制链接]
查看145 | 回复0 | 2021-8-21 11:32:19 | 显示全部楼层 |阅读模式

{DDX:(60 5 10)}
N:=10;
量:=v;
换手:=V/CAPITAL*100;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2));
DLX:(买盘-(-卖盘))/量*换手,color3d;
DLX1:SUM(DLX,60),coloryellow;
DLX5:ma(DLX1,5);
DLX10:ma(DLX1,10);
FILLRGN(dlx1,dlx5,dlx5<dlx1,rgb(255,50,0),dlx5>dlx1,rgb(0,50,255)),layer5;
FILLRGN(dlx10,dlx5,dlx10<dlx5,rgb(180,0,100),dlx10>dlx5,rgb(0,100,100)),layer5;
A1:=SUMBARS(VOL,CAPITAL);
CMA:=IF(CAPITAL>0,SUM(AMOUNT,A1)/SUM(VOL,A1)/100,EMA(CLOSE,120));
百分之百换手价:CMA,LINETHICK0,ColorFFC0FF;{100%换手平均成本价};

202108211127.jpg

202108211127.jpg

 

回复

使用道具 举报

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

本版积分规则