《选股王软件》指标全套源码,本文仅提供源码,并无公式提供下载
指标由单用九个单选指标:
百法百中、
抄底高手、
乘胜追击、
短线黑马、
逆势买入、
牛市专利、
市场赢家、
顺势搭轿。
和一个复合选股指标〈选股王选股〉
另有一个副图指标《选股王》也可用它进行选股,速度要慢些。主要用来查看历史
情况和当前有几个指标同时选中这支股。
{百法百中}
Var1:=INDEXC;
Var2:=MA(Var1,6);
Var3:=MA(Var1,24);
Var4:=MA(Var1,32);
Var5:=MA(Var1,62);
Var6:=MA(Var1,105);
Var7:=Var5<REF(Var5,1) AND Var6<REF(Var6,1) AND Var5<Var6*0.98;
Var8:=Var4>Var2*1.11 AND Var3>Var2*1.095;
Var9:=Var2>Var1*0.95;
VarA:=CLOSE/MA(CLOSE,48)*100<67;
VarB:=CLOSE/MA(CLOSE,50)*100<69;
VarC:=HIGH>LOW*1.078;
VarD:=VarC AND COUNT(VarC,4)>2;
VarD AND (VarA OR VarB) AND (DATE>1020201 OR DATE<1341231) OR Var7 AND Var8 AND Var9 AND CLOSE/COST(8)<=0.8 AND (CLOSE>OPEN OR CLOSE<OPEN) AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1));
{抄底高手}
Var1:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,48)*100<-30;
Var2:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100<-27;
Var3:=Var1 AND Var2;
Var4:=Var1 AND Var2 AND COUNT(Var3,2)=1 AND DATE>940101 AND (CLOSE>OPEN OR CLOSE<OPEN) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 AND (REF(OPEN,1)>REF(CLOSE,1) OR REF(OPEN,1)<REF(CLOSE,1)) AND (REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5));
Var5:=DMA(EMA(CLOSE,8),SUM(VOL,9)/2.8/CAPITAL);
Var6:=(CLOSE-Var5)/Var5*100;
Var7:=REF(Var6,1)<-42 AND Var6>REF(Var6,1) AND REF(Var6,1)<REF(Var6,2) AND Var6-REF(Var6,1)>1.8;
Var4 OR Var7;
{乘胜追击}
Var1:=WINNER(CLOSE)-WINNER(OPEN);
Var2:=REF(CLOSE,1);
Var3:=SMA(MAX(CLOSE-Var2,0),5,1)/SMA(ABS(CLOSE-Var2),5,1)*100;
Var4:=CLOSE/MA(CLOSE,3)>=1.05;
Var5:=MA(VOL,8)/MA(VOL,45)>=2.5;
Var6:=WINNER(CLOSE)-WINNER(OPEN);
Var7:=REF(CLOSE,1);
Var8:=SMA(MAX(CLOSE-Var7,0),5,1)/SMA(ABS(CLOSE-Var7),5,1)*100;
Var9:=Var6>=0.3 AND MA(VOL,6)/MA(VOL,26)>=1.9 AND VOL>REF(VOL,1) AND COUNT(Var8<20,20)>=1 AND CLOSE/MA(CLOSE,3)>=1.07;
VarA:=Var1>=0.4 AND Var5 AND COUNT(Var3<20,20)>=1 AND Var4 AND CLOSE>MA(CLOSE,85) AND VOL>REF(VOL,1);
VarA OR Var9;
{短线黑马}
Var1:=DMA(CLOSE,VOL/MA(VOL,4)/4);
Var2:=DMA(CLOSE,VOL/MA(VOL,33)/33);
Var3:=(CLOSE-Var1)/Var1*100<-11;
Var4:=(Var1-Var2)/Var2*100<-22.3;
Var5:=Var3 AND Var4 AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND (REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5)) AND (REF(OPEN,6)>REF(CLOSE,6) OR REF(OPEN,6)<REF(CLOSE,6)) AND (REF(OPEN,7)>REF(CLOSE,7) OR REF(OPEN,7)<REF(CLOSE,7));
Var6:=DMA(CLOSE,VOL/MA(VOL,3)/3);
Var7:=DMA(CLOSE,VOL/MA(VOL,33)/33);
Var8:=(CLOSE-Var6)/Var6*100<-5;
Var9:=(Var6-Var7)/Var7*100<-18;
VarA:=(INDEXC-LLV(INDEXL,250))/(HHV(INDEXH,250)-LLV(INDEXL,250))*100;
VarB:=SMA(VarA,30,1);
VarC:=SMA(VarB,50,1);
VarD:=Var8 AND Var9 AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05 AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND VarC<20;
VarE:=VarD AND COUNT(VarD,2)=1 AND DATE>960101;
Var5 OR VarE;
{逆势买入}
Var1:=DMA(CLOSE,VOL/MA(VOL,4)/4);
Var2:=DMA(CLOSE,VOL/MA(VOL,32)/32);
Var3:=(CLOSE-Var1)/Var1*100<-8;
Var4:=(Var1-Var2)/Var2*100<-21;
Var5:=Var3 AND Var4 AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05 AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND (REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5)) AND (REF(OPEN,6)>REF(CLOSE,6) OR REF(OPEN,6)<REF(CLOSE,6)) AND (REF(OPEN,7)>REF(CLOSE,7) OR REF(OPEN,7)<REF(CLOSE,7));
Var6:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100<-23;
Var7:=(INDEXC-LLV(INDEXL,275))/(HHV(INDEXH,275)-LLV(INDEXL,275))*100;
Var8:=SMA(Var7,50,1);
Var9:=SMA(Var8,40,1);
VarA:=Var6 AND Var9<23 AND COUNT(Var6,2)=1 AND (OPEN>CLOSE OR OPEN<CLOSE) AND OPEN/REF(CLOSE,1)>0.96 AND DATE>961216;
Var5 OR VarA;
{牛市专利}
Var1:=REF(CLOSE,3)*0.844;
Var2:=REF(CLOSE,13)*0.767;
Var3:=INDEXC;
Var4:=INDEXV;
Var5:=MIN(Var1,Var2);
Var6:=100*VOL/CAPITAL;
Var7:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;
Var8:=(CLOSE-Var5)/CLOSE<0.07 AND SUM(Var6,3)/3<2.345 AND Var3>MA(Var3,450) AND MA(Var4,61)/MA(Var4,80)>0.923 AND CLOSE>MA(CLOSE,190);
Var9:=Var3>MA(Var3,450) AND Var7<-16.5 AND MA(Var4,61)/MA(Var4,80)>0.92 AND CLOSE>MA(CLOSE,215) AND (REF(OPEN,1)>REF(CLOSE,1) OR REF(OPEN,1)<REF(CLOSE,1)) AND (REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5)) AND VOL/CAPITAL<0.075;
(Var8 OR Var9) AND HHV(CLOSE,440)/LLV(CLOSE,440)<4;
{市场赢家}
Var1:=CLOSE/MA(CLOSE,30)*100<75;
Var2:=CLOSE/MA(CLOSE,50)*100<78;
Var3:=HIGH>LOW*1.053;
Var4:=Var3 AND COUNT(Var3,5)>2;
Var5:=Var4 AND (Var1 OR Var2);
Var6:=DMA(EMA(CLOSE,5),SUM(VOL,8)/2.8/CAPITAL);
Var7:=(CLOSE-Var6)/Var6*100;
REF(Var7,1)<-34 AND Var7>REF(Var7,1) AND REF(Var7,1)<REF(Var7,2) AND Var7-REF(Var7,1)>1.76 AND (DATE>1020201 OR DATE<1020101) OR Var5;
{顺势搭轿}
Var1:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,48)*100<-28;
Var2:=SMA(MAX(CLOSE-REF(CLOSE,1),0),12,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),12,1)*100>23;
Var3:=Var1 AND Var2;
Var3 AND VOL>MA(VOL,18) AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND (REF(CLOSE,2)>REF(OPEN,2) OR REF(CLOSE,2)<REF(OPEN,2)) AND (REF(CLOSE,3)>REF(OPEN,3) OR REF(CLOSE,3)<REF(OPEN,3)) AND (REF(CLOSE,4)>REF(OPEN,4) OR REF(CLOSE,4)<REF(OPEN,4)) AND (REF( |