DDE预警指标 通达信公式(附图)

[复制链接]
查看172 | 回复0 | 2021-8-20 20:57:17 | 显示全部楼层 |阅读模式

jj:=(HIGH+LOW+CLOSE)/3;
qj0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
qj1:=qj0*(MIN(OPEN,CLOSE)-LOW);
qj2:=qj0*(jj-MIN(CLOSE,OPEN));
qj3:=qj0*(HIGH-MAX(OPEN,CLOSE));
qj4:=qj0*(MAX(CLOSE,OPEN)-jj);
DDX:=IF(HIGH=LOW,4*qJ0,((qj1+qj2)-(qj3+qj4)))/SUM(VOL,10)*100;
DDY:=((qj2+qj4)-(qj1+qj3))/SUM(VOL,10)*100;
DDZ:=((qj1+qj2)-(qj3+qj4))/((qj1+qj2)+(qj3+qj4))*100*17;
预警:=DDX>2 and DDZ>100 and DDY>3 and VOL/CAPITAL*100>3;
{资金}
VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89);
VAR1E:=EMA(VAR1D,30);
VAR1F:=2*(VAR1D-VAR1E)*10;
VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2);
VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR27:=EMA(VAR26,100);
VAR28:=2*(VAR26-VAR27);
VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1);
主力资金:=IF(YEAR<2020 AND VAR28>0.1,VAR29,0)*5;
拉升资金:=IF(YEAR<2020 AND VAR1F>0.015,VAR20,0)/45;
{突破选股}
OBV:=CLOSE;
P:=1;
A1:=REF(OBV,P)=HHV(OBV,2*P+1);
B1:=FILTER(A1,P);
C1:=BACKSET(B1,P+1);
D1:=FILTER(C1,P);
上:=REF(OBV,BARSLAST(D1));
xg:=CROSS(OBV,上*1.01);
组合买入:预警 and xg and 主力资金 or 预警 and xg and 拉升资金;

14O1TBL10-4GI.jpg

14O1TBL10-4GI.jpg

 

回复

使用道具 举报

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

本版积分规则