通达信《选股王软件》公式全套源码[/hide][hide]{百法百中}Var1:=INDEXC;Var2:=MA(Var1,6);Var3:=MA(Var1,24);Var4:=MA(Var1,32);Var5:=MA(Var1,62);Var6:=MA(Var1,105);Var7:=Var5REF(VAR5,1)Var5Var6*0.98;Var8:=Var4Var2*1.11ANDVar3Var2*1.095;Var9:=Var2Var1*0.95;VarA:=CLOSE/MA(CLOSE,48)*10067;VarB:=CLOSE/MA(CLOSE,50)*10069;VarC:=HIGHLOW*1.078;VarD:=VarCANDCOUNT(VarC,4)2;VarDAND(VarAORVarB)AND(DATE1020201ORDATE1341231)ORVar7ANDVar8ANDVar9ANDCLOSE/COST(8)=0.8AND(CLOSEOPENORCLOSEREF(OPEN,1)ORREF(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:=Var1ANDVar2;Var4:=Var1ANDVar2ANDCOUNT(Var3,2)=1ANDDATE940101AND(CLOSEOPENORCLOSE-0.07AND(REF(OPEN,1)REF(CLOSE,1)ORREF(OPEN,1)REF(CLOSE,2)ORREF(OPEN,2)REF(CLOSE,3)ORREF(OPEN,3)REF(CLOSE,4)ORREF(OPEN,4)REF(CLOSE,5)ORREF(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)-42ANDVar6REF(Var6,1)ANDREF(Var6,1)1.8;Var4ORVar7;{乘胜追击}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.3ANDMA(VOL,6)/MA(VOL,26)=1.9ANDVOLREF(VOL,1)ANDCOUNT(Var820,20)=1ANDCLOSE/MA(CLOSE,3)=1.07;VarA:=Var1=0.4ANDVar5ANDCOUNT(Var320,20)=1ANDVar4ANDCLOSEMA(CLOSE,85)ANDVOLREF(VOL,1);VarAORVar9;{短线黑马}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:=Var3ANDVar4AND(OPENCLOSEOROPEN-0.07AND(REF(CLOSE,1)REF(OPEN,1)ORREF(CLOSE,1)REF(CLOSE,2)ORREF(OPEN,2)REF(CLOSE,3)ORREF(OPEN,3)REF(CLOSE,4)ORREF(OPEN,4)REF(CLOSE,5)ORREF(OPEN,5)REF(CLOSE,6)ORREF(OPEN,6)REF(CLOSE,7)ORREF(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:=Var8ANDVar9AND(OPENCLOSEOROPEN-0.05AND(REF(CLOSE,1)REF(OPEN,1)ORREF(CLOSE,1)REF(OPEN,1))ANDVarC20;VarE:=VarDANDCOUNT(VarD,2)=1ANDDATE960101;Var5ORVarE;{逆势买入}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:=Var3ANDVar4AND(OPENCLOSEOROPEN-0.05AND(REF(CLOSE,1)REF(OPEN,1)ORREF(CLOSE,1)REF(CLOSE,2)ORREF(OPEN,2)REF(CLOSE,3)ORREF(OPEN,3)REF(CLOSE,4)ORREF(OPEN,4)REF(CLOSE,5)ORREF(OPEN,5)REF(CLOSE,6)ORREF(OPEN,6)REF(CLOSE,7)ORREF(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:=Var6ANDVar923ANDCOUNT(Var6,2)=1AND(OPENCLOSEOROPEN0.96ANDDATE961216;Var5ORVarA;{牛市专利}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)/CLOSE0.07ANDSUM(Var6,3)/32.345ANDVar3MA(Var3,450)ANDMA(Var4,61)/MA(Var4,80)0.923ANDCLOSEMA(CLOSE,190);Var9:=Var3MA(Var3,450)ANDVar7-16.5ANDMA(Var4,61)/MA(Var4,80)0.92ANDCLOSEMA(CLOSE,215)AND(REF(OPEN,1)REF(CLOSE,1)ORREF(OPEN,1)REF(CLOSE,2)ORREF(OPEN,2)REF(CLOSE,3)ORREF(OPEN,3)REF(CLOSE,4)ORREF(OPEN,4)REF(CLOSE,5)ORREF(OPEN,5)REF(CLOSE,5))ANDCAPITAL0.075;(Var8ORVar9)ANDHHV(CLOSE,440)/LLV(CLOSE,440)4;{市场赢家}Var1:=CLOSE/MA(CLOSE,30)*10075;Var2:=CLOSE/MA(CLOSE,50)*10078;Var3:=HIGHLOW*1.053;Var4:=Var3ANDCOUNT(Var3,5)2;Var5:=Var4AND(Var1ORVar2);Var6:=DMA(EMA(CLOSE,5),SUM(VOL,8)/2.8/CAPITAL);Var7:=(CLOSE-Var6)/Var6*100;REF(Var7,1)-34ANDVar7REF(Var7,1)ANDREF(Var7,1)1.76AND(DATE1020201ORDATE1020101)ORVar5;{顺势搭轿}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)*10023;Var3:=Var1ANDVar2;Var3ANDVOLMA(VOL,18)AND(REF(CLOSE,1)REF(OPEN,1)ORREF(CLOSE,1)REF(OPEN,2)ORREF(CLOSE,2)REF(OPEN,3)ORREF(CLOSE,3)REF(OPEN,4)ORREF(CLOSE,4)REF(OPEN,5)ORREF(CLOSE,5)REF(OPEN,6)ORREF(CLOSE,6)REF(OPEN,6));{旭日东升}Var1:=(CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100-23;Var2:=SMA(MAX(CLOSE-REF(CLOSE,1),0),3,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),3,1)*10016;Var3:=100*(HHV(HIGH,27)-CLOSE)/(HHV(HIGH,27)-LLV(LOW,27));Var1ANDVar2ANDCROSS(Var3,79)AND(OPENCLOSEOROPENCLOSE)ANDREF(CLOSE,1)MA(VOL,23);{选股王选股}EXPLORER.百法百中orEXPLORER.抄底高手orEXPLORER.乘胜追击orEXPLORER.短线黑马orEXPLORER.逆势买入orEXPLORER.牛市专利orEXPLORER.市场赢家orEXPLORER.顺势搭轿orEXPLORER.旭日东升;================================================={选股王副图}百法百中:EXPLORER.百法百中,ColorFFFFFF;STICKLINE(百法百中,0,9.8,2,0),ColorFFFFFF;DRAWTEXT(百法百中,10,'百法百中'),ColorFFFFFF;抄底高手:EXPLORER.抄底高手,LINETHICK0,Color00FF00;STICKLINE(抄底高手,0,8.8,2,0),Color00FF00;DRAWTEXT(抄底高手,9,'百法百中'),Color00FF00;乘胜追击:EXPLORER.乘胜追击,LINETHICK0,ColorFF00FF;STICKLINE(乘胜追击,0,7.8,2,0),ColorFF00FF;DRAWTEXT(乘胜追击,8,'乘胜追击'),Color