股票公式源码汇总:
一招就够
V1:=EMA(CLOSE,5);
V2:=EMA(EMA(CLOSE,29)*1.01,10);
CROSS(V1,V2);
黑马易
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,30);
VAR4:=MA(CLOSE,60);
VAR5:=EMA(COST(85),7);
VAR6:=EMA(COST(15),7);
VAR7:=SUM(CLOSE*VOL*100,4)/SUM(VOL*100,4);
VAR8:=INTPART(VAR7*100)/100;
VAR9:=SUM(CLOSE*VOL*100,7)/SUM(VOL*100,7);
VARA:=INTPART(VAR9*100)/100;
VARB:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);
VARC:=INTPART(VARB*100)/100;
VARD:=EMA(CLOSE,5)-EMA(CLOSE,10);
VARE:=EMA(VARD,9);
VARF:=(-100)*(HHV(CLOSE,5)-CLOSE)/(HHV(CLOSE,5)-LLV(LOW,5))+100;
VAR10:=(-100)*(HHV(CLOSE,10)-CLOSE)/(HHV(CLOSE,10)-LLV(LOW,10))+100;
VAR11:=(-100)*(HHV(CLOSE,20)-CLOSE)/(HHV(CLOSE,20)-LLV(LOW,20))+100;
VAR12:=(-100)*(HHV(CLOSE,30)-CLOSE)/(HHV(CLOSE,30)-LLV(LOW,30))+100;
VAR13:=REF(VARE,1);
VAR14:=VARE;
VAR15:=VAR14-VAR13;
VAR16:=REF(VARD,1);
VAR17:=VARD;
VAR18:=VAR17-VAR16;
VAR19:=OPEN;
VAR1A:=CLOSE;
黑马易选股: VAR19<=VAR1 AND VAR19<=VAR2 AND VAR19<=VAR3 AND VAR1A>=VAR1 AND VAR1A>=VARC AND VAR15>0 AND VAR18>0;
以逸待劳
VAR1:=COST(10);
VAR2:=REF(CLOSE,7)/MA(REF(CLOSE,7),3)>=1.07 AND REF(CLOSE,7)=HHV(REF(CLOSE,7),3) AND MA(REF(VOL,7),2)/MA(REF(VOL,7),40)>=3 AND MA(REF(VOL,7),2)=HHV(MA(REF(VOL,7),2),3) AND REF(VOL,7)>REF(REF(VOL,7),1) AND REF(CLOSE,7)>REF(REF(CLOSE,7),1);
VAR3:=REF(REF(CLOSE,7),1);
VAR4:=SMA(MAX(REF(CLOSE,7)-VAR3,0),5,1)/SMA(ABS(REF(CLOSE,7)-VAR3),5,1)*100;
VAR5:=COUNT(VAR4<20,20)>=1;
VAR6:=(INDEXC-LLV(INDEXL,89))/(HHV(INDEXH,89)-LLV(INDEXL,89))*100;
VAR7:=SMA(VAR6,8,1);
VAR8:=SMA(VAR7,10,1);
VAR9:=REF(INDEXC,1);
VARA:=SMA(MAX(INDEXC-VAR9,0),6,1)/SMA(ABS(INDEXC-VAR9),6,1)*100;
VARB:=VARA>=75 AND VARA<90 AND VAR7>VAR8 AND BARSLAST(CROSS(VAR7,VAR8))<=21;
VAR2 AND VAR5 AND   VARB;
资金进场
A1:=DYNAINFO(6);
A2:=IF(LOW>A1,0,IF(HIGH<A1,1,(A1-LOW+0.01)/(HIGH-LOW+0.01)));
A3:=VOL/WINNER(LOW);
A4:=REF(HHV(CLOSE,120),1);
A5:=REF(LLV(CLOSE,120),1);
A6:=100*(CLOSE-A5)/(A4-A5);
A7:=A2>0 OR A2=1;
A8:=A7 AND A3/REF(A3,3)>=3 AND A6<80;
A11:=IF(FILTER(A8,3),5,0);
资金进场日:A11>0,8;
 
条件选股公式:黑马二号 (黑马一号改进)  缺省周期:日线
参数描述: N(1,100,45)M1(2,40,2)M2(2,40,5)M3(1,30,5)
Var1:=(HHV(CLOSE,26)-LLV(CLOSE,26))/SUM(ABS(CLOSE-REF(CLOSE,1)),26);
Var2:=MA(Var1,7);
Var3:=EMA(EMA(EMA(CLOSE,12),12),12);
Var4:=(Var3-REF(Var3,1))/REF(Var3,1)*100;
Var5:=MA(Var4,15);
Var6:=MA(CLOSE,5);
Var7:=MA(CLOSE,10);
Var8:=MA(CLOSE,20);
Var9:=MA(VOL,10);
VarA:=MA(CLOSE,60);
VarB:=MA(CLOSE,30);
VarC:=MA(VOL,3);
VarD:=MA(VOL,5);
VarE:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
VarF:=SMA(VarE,M1,1);
Var10:=SMA(VarF,M2,1);
Var11:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),0-VOL,0)),0);旗舰28源码
Var12:=((ABS(Var6-Var7)/CLOSE<0.04 OR ABS(Var6-(Var6+Var7+Var8)/3)/(Var6+Var7+Var8)/3<0.03 AND
ABS(Var7-(Var6+Var7+Var8)/3)/(Var6+Var7+Var8)/3<0.03 OR Var2<MAX(REF(Var2,2),REF(Var2,3))) AND
CLOSE>Var7 AND Var11>MAX(REF(Var11,1),REF(Var11,2)) AND Var11>MAX(REF(Var11,3),REF(Var11,4)) AND
(REF(MA(VOL,5),1)>REF(MA(VOL,5),2) AND REF(MA(VOL,5),2)>REF(MA(VOL,5),3) AND
REF(MA(VOL,5),3)>REF(MA(VOL,5),4) OR (CLOSE-Var6)/Var6*100<-7 AND "KD.K"<8 AND "KD.D"<15 AND
CROSS("KDJ.J"(N,M1,M2),0) OR REF(Var9,3)>MAX(REF(Var9,4),REF(Var9,5))) OR
(HIGH-CLOSE)/CLOSE<=0.019 AND CLOSE>REF(CLOSE,1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.05 AND
(CLOSE-Var6)/Var6*100<18 AND Var5<Var4) AND (CLOSE>Var6 AND Var6>Var7 AND Var7>VarB AND
VarA>REF(VarA,1) AND REF(VarA,2)>REF(VarA,3) AND REF(VarA,4)>REF(VarA,5) AND
VarC>MAX(REF(VarC,1),REF(VarC,2)) AND (VOL<=VarC*2 OR (HIGH-CLOSE)/CLOSE<0.01) AND
Var5<Var4 OR HIGH-CLOSE=0 AND CLOSE>REF(CLOSE,1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.05 OR
(CLOSE-Var6)/Var6*100<-7 AND "KD.K"<8 AND "KD.D"<15 AND CROSS("KDJ.J"(N,M1,M2),0)) AND
"ARBR.BR"<277 AND (HIGH-CLOSE)/ABS(CLOSE-OPEN)<2.3 AND NOT(CROSS(Var10,VarF) AND Var10>80) AND
Var1>Var2;
Var13:=VOL/CAPITAL>M3/100 AND REF(VOL/CAPITAL,1)<0.05 AND REF(VOL/CAPITAL,2)<0.05 AND
REF(VOL/CAPITAL,3)<0.05;
Var14:=2*(COST(85)-COST(15))/(COST(85)+COST(15));
Var15:=REF(Var14,1)<=0.16;
Var12 AND Var13 AND Var15;
条件选股公式:紧追  缺省周期:日线
Var1:=CLOSE/REF(CLOSE,1)>=1.09 AND HIGH/CLOSE<1.005 AND MA(CLOSE,90)/CLOSE>=1.1;
Var1 AND COUNT(Var1,20)=1;
技术指标公式:1.2.3.  缺省周期:日线
参数描述: N(10,244,10)
Var1:=MA(CLOSE,5);
Var2:=MA(CLOSE,10);
Var3:=MA(CLOSE,60);
Var4:=MA(CLOSE,35);
Var5:=MA(REF(VOL,10),20);
Var6:=IF(CLOSE-SMA(CLOSE,75,1)<0,CAPITAL/VOL,0);

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。