以下是通达信《DDE组合》(源码、副图、预警、贴图大智慧)
《DDE组合》是老指标了,预警选股效果还不错,源码送大家。
{DDE预警}
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 拉升资金;
评论(0)