选股公式源码大全(一)
      一、以下公式仅供学习研究之用;
    二、选股公式只能起到一个条件过滤的作用,具体操作还得综合其他技术面、基本面等;
    三、不同的行情要用不同的方式,不可能一劳永逸;
一、{选股公式}
ZLC:= EMA((WINNER(CLOSE) * 70),3);
SHC:= EMA(((WINNER((CLOSE * 1.1)) - WINNER((CLOSE * 0.9))) * 80),3);
主力控盘:= ((ZLC / (ZLC+ SHC)) * 100);
上限:= HHV(主力控盘,20);
下限:= LLV(主力控盘,20);
中线:=(上限 + 下限)/2;
A:=60;
B:=10;
抄低:CROSS(主力控盘,B);
二){选股公式}
LC := REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),10,1)/SMA(ABS(CLOSE-LC),10,1)*100;
跌破:CROSS(20,RSI);
三){简单实用选股公式}
公式名:波段
M3:MA((CLOSE*2+H+L)/4,3);
M3_3:MA(M3,3),COLORGREEN;
选股公式:
M3:=MA((CLOSE*2+H+L)/4,3);
M3_3:=MA(M3,3);
xg:cross(M3,M3_3);
四){选股公式}
VAR1P:=(CLOSE-LLV(LOW,60.135))/(HHV(HIGH,60.135)-LLV(LOW,60))*80;
VAR2P:=SMA(VAR1P,7,1);
VAR3P:=SMA(VAR2P,5,1);
IF(CROSS(VAR2P,VAR3P) AND VAR2P<20,85,0);
五){选股公式}
N:=9;
RSV:= (CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,2,1);
D:=SMA(K,2,1);
K>D AND REF(K,1)<REF(D,1);
六){选股公式}
LOWV:=LLV(LOW,27);
HIGHV:=HHV(HIGH,27);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
K:=EMA(RSV,3);
D:=MA(K,9);
bb:= CLOSE>OPEN and CLOSE<REF(OPEN,1);
cc:=(c-ref(c,20))/ref(c,20)<-0.18;
cq:=SPLITBARS(0 )<15;
xg: k<20 AND d<20 and bb AND ref(CC,1)=1 and cq=0 ,colorred;
七){狙击低点选股公式
      股价在上升途中的回调时,突然走出跌破20日均线的大(中)阴线;第二天走出一根下探的长下影线的K线(阴阳均可)。此K线组合市场意义在于股价探底回升,之后一般会走出一段不错的上升行情}
ref(c,1)<ref(o,1) and ref(c,2)*0.95>=ref(c,1) and ref(o,1)/ref(c,1)>=1.04
and (MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667 and ma(c,10)>ma(c,20)
and ref(c,1)>ma(c,20) and l<ma(c,20) and c>ma(c,20) ;
八){分时横盘选股公式}
tt:=BARSCOUNT(CLOSE);
CC:=CLOSE;
均线:=SUM(AMOUNT,0)/SUM(VOL*100,0);
上均:=均线 + AVEDEV(C,tt)*2;
下均:=均线 - AVEDEV(C,tt)*2;
时长:=if(HOUR>=13 AND HOUR<15 ,1,0);
涨幅:=(CLOSE>DYNAINFO(3))>1.02;
跌幅:=(CLOSE/DYNAINFO(3))<0.98;
横盘:=((HHV(CLOSE,TT)-LLV(CLOSE,TT))/CLOSE)<0.03;
yy:=SMA(VOL,30,1);
放量:=(yy-LLV(Llv(yy,1),30))/(HHV(Hhv(yy,1),30)-LLV(Llv(yy,1),30))>0.92;
涨跌幅:=涨幅 OR 跌幅;
横涨:=涨跌幅=0 and 横盘 and 时长 and 放量 and CROSS(CC,上均);
突破:FILTER(横涨,100);
九){选股公式}
var1:=cross(ma(c,5),ma(c,10));
var2:=c>ma(c,60);
DIFF:= EMA(CLOSE,26) - EMA(CLOSE,12);
DEA:= EMA(DIFF,9);
MACD:= 2*(DIFF-DEA);
var3:=cross(diff,macd);
var4:=(v/FINANCE(7))>5;
var5:=ma(v,5)>ma(v,34);
xg:var1 and var2 and var4 and var5;
十){周线买入选股公式}
AA05:=MA(C,5);
五日乖离率:=(c-AA05)/AA05*100;
AA30:=MA(C,30);
三拾日乖离率:=(c-AA30)/AA30*100;
MR:=count(cross(五日乖离率,0),3)>=1 and 三拾日乖离率>ref(三拾日乖离率,1) and AA05>ref(AA05,1) and (c/ref(c,1)-1)*100>5 and ref(c,1)<AA30;
买入:IF(filter(MR,10),1,0);
十一){抄底逃顶选股公式}
VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
VAR6:=CROSS(VAR3,VAR4) AND VAR3<25;
选股:VAR6 AND COUNT(VAR6,10)=1;
十二){选股公式}
多头线:(SUM((((2)*(CLOSE-CLOSE*0.2)+(OPEN-OPEN*0.2)+(HIGH-HIGH*0.2)+(LOW-LOW*0.2))/(5))*(VOL),8))/(SUM(VOL,8)),COLOR0099FF,LINETHICK1;
空头线:LLV(多头线,8),LINETHICK1,COLORGREEN;
C-C*0.2,COLORWHITE,LINETHICK1;
用法:3条线作多,白线上穿绿线或黄线涨幅一般大于7%
十三){选股公式}
input:N(20,1,100),M(60,1,100);
RSV:=(((CLOSE - LLV(LOW,N)) / (HHV(HIGH,N) - LLV(LOW,N))) * 100);
RSV1:=((100 * (HHV(HIGH,M) - CLOSE)) / (HHV(HIGH,M) - LLV(LOW,M)));
MA1:=MA(CLOSE,11);
MA2:=MA(CLOSE,22);
MA3:=MA(CLOSE,44);
VAR1:=IF((CLOSE > REF(CLOSE,1)),88,0);
VAR2:=IF(((((CLOSE / REF(CLOSE,1)) > 1.052) AND ((HIGH / CLOSE) <= 1)) AND (VAR1 > 0)),91,0);
VARA:=FILTER((VAR2 > 90),34);
VAR3:=(((OPEN < MA1) OR (OPEN < MA2)) OR (OPEN < MA3));
VAR4:=(CLOSE > MAX(MA1,MAX(MA2,MA3)));
VAR5:=((VOL / MA(VOL,30)) > 1.2);
VAR6:=((CLOSE / REF(CLOSE,1)) > 1.052);
旗舰28源码
VARB:=(((VAR3 AND VAR4) AND VAR5) AND VAR6);
VARC:=DMA(MA((CLOSE + ((REF(CLOSE,5) / CLOSE) * 0.098)),90),VOL);
K1:=SMA(RSV1,3,1);
D1:=SMA(K1,3,1);
AA:=EMA(D1,20);
K:=SMA(RSV,3,1);
D:SMA(K,3,1),LINETHICK1;
J:((3 * K) - (2 * D)),LINETHICK1;
RSV2:=EMA(J,10);
VARD:=(RSV2 > AA);
十天百分之五:STICKLINE((((VARB AND VARD) AND (VARC > REF(VARC,2))) OR (((VARA AND VARD) AND (VARC > REF(VARC,2))) > 0)),0,50,4,0),colorFF0000;
东方之珠:IF((((VARB AND VARD) AND (VARC > REF(VARC,2))) OR ((VARA AND VARD) AND (VARC > REF(VARC,2)))),95,0),colorFF0000;
十四){选股公式}
R:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));{零延迟威廉线}
PERIODD:=10;
EMA1:=EMA(R,PERIODD);
EMA2:=EMA(EMA1,5);
DIFFERENCE:=EMA1-EMA2;
ZEROLAGEMA:=EMA1+DIFFERENCE;
PR:100-ABS(ZEROLAGEMA), COLORRED ,LINETHICK1;
MOVEAVG:MA(PR,5), COLORWHITE ,LINETHICK1;

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