指標(biāo)進行了組合,,該指標(biāo)可以用于預(yù)警,也可以盤后選股,;
{DDE預(yù)警+突破選股+主力資金} {DDE預(yù)警} 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; dde預(yù)警:=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,COLORFF55FF,LINETHICK0; 拉升資金:=IF(YEAR<2020 AND VAR1F>0.015,VAR20,0)/45,COLOR00DDEE,LINETHICK0;
{突破選股} OBV:=CLOSE; P:=1;//有心人在此改數(shù)字會有新發(fā)現(xiàn) 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)),COLORMAGENTA,LINEDASH,LINETHICK0; xg:=CROSS(OBV,上*1.01),LINETHICK1; 組合買入:if(dde預(yù)警 and xg and 主力資金 or dde預(yù)警 and xg and 拉升資金,1,0);
注意:BACKSET雖然是未來函數(shù),,但在指標(biāo)中用于劃線,,在我的實戰(zhàn)檢驗中有時信號會消失,在下降通道行情中時有發(fā)生,,但不會發(fā)生漂移,,這就是該指標(biāo)組合與其他未來函數(shù)指標(biāo)的不同之處,指標(biāo)本身好壞不重要,,重要的看你如何去使用,;怕未來函數(shù)的朋友請不要使用,如果覺得好的朋友希望加點分,,在此先謝了,!
|