12vvv
由于你只提示把原公式改成选股公式,为了表述原式,没有做大的改动,使用下列公式可以选取14只个股,成功率:0.6%;如果把XG:{AA0 && AA1 && AA2 && AA3 &&} AA4 && AA5 && AA6 ;中的大括号去掉,可以选股11只个股,成功率:0.4%;(选取日期为2月13日,两市2464只个股)。
VAR1K:=EMA(C,12)-EMA(C,20);
VAR2K:=EMA(VAR1K,9);
{VARAK:=EMA((EMA(C,12)-EMA(C,20)),9);}
牛魔王:=(OPEN<=MA(CLOSE,5) AND OPEN<=MA(CLOSE,10) AND OPEN<=MA(CLOSE,30) AND CLOSE>=MA(CLOSE,5) AND CLOSE>=((SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28))*100)/100 AND (VAR2K-REF(VAR2K,1))>0 AND (VAR1K-REF(VAR1K,1))>0);
AA0:=DRAWICON(牛魔王,70,1);
易股:=(VAR1K>VAR2K AND REF(VAR1K,1)<=REF(VAR2K,1) AND VAR1K<0 AND VAR2K<-0.2 AND (-100*(HHV(CLOSE,10)-CLOSE)/(HHV(CLOSE,10)-LLV(LOW,10))+100)>45 AND (VAR2K-REF(VAR2K,1))>0);
AA1:=DRAWICON(易股,60,1);
飞龙:=MA(WINNER(C),1)*100;
底1:=CROSS(飞龙,2.5)*55;
AA2:=DRAWICON(底1,50,1);
RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
K:=SMA(SMA(RSV,3,1),3,1);
D:=SMA(K,3,1);
J:=(3*K-2*D);
底2:=IF(K<20 AND D<20 AND CROSS(J,K) AND CROSS(K,D),60,0);
AA3:=DRAWICON(底2,40,1);
趋势:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
底部:=10;
警戒1:=IF(趋势<=10,15,0);
底3:=IF(CROSS(趋势,底部),40,0);
AA4:=DRAWICON(底3,30,1);
VAR1:=(CLOSE-LLV(LOW,60.13547854))/(HHV(HIGH,60.13547854)-LLV(LOW,60))*80;
VAR2:=SMA(VAR1,7,1);
VAR3:=SMA(VAR2,5,1);
底4:=IF(CROSS(VAR2,VAR3) AND VAR2<20,50,0);
VAR8:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR9:=SMA(VAR8,5,1);
VARA:=SMA(VAR9,5,1);
底5:=IF(CROSS(VAR9,VARA) AND VAR9<20,60,0);
VAR11:=1/WINNER(CLOSE);
VAR21:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR31:=100-ABS(VAR21);
VVV:=IF(VAR11>5,IF(VAR11<100,VAR11,VAR31-10),0);
VARB:=HHV(HIGH,25);
VARC:=LLV(LOW,25);
CC:=EMA((CLOSE-VARC)/(VARB-VARC)*100,5);
警戒2:=IF(CC<7,30,0);
底6:=IF(CROSS(CC,VVV),70,0);
AA5:=DRAWICON(底6,20,1);
底7:=(CLOSE-MA(CLOSE,58))/MA(CLOSE,58)<-0.2245;
AA6:=DRAWICON(底7,10,1);
XG:{AA0 && AA1 && AA2 && AA3 &&} AA4 && AA5 && AA6 ;