DYNAINFO(39)<50 {市盈率小于50} and FINANCE2(10)>50 {净利润同比大于50} and FINANCE2(12)>50 {销售毛利率大于50} and DYNAINFO(57)/100000000<50 {流通市值小于50亿}; {没有扩张能力和市场占有率公式} “总股本在5个亿左右、流通股本在1个亿左右”的股票 pffin(3001,0)/1000000<5 {总股本小于5亿} and capital/1000000<1 {流通股小于1亿}
FINANCE2(4)>0 {每股净资产大于0} and FINANCE2(3)>0.2 {每股收益大于0.2} and close/FINANCE2(4)<5 and pffin(1064,0)/pffin(1097,0)>1{流动资产/流动负债>1} and close/FINANCE2(3)<40 and cross("macd.macd",0) and "macd.diff"<0;
开盘分钟:=if(CURRENTTIME>93000 and CURRENTTIME<150000, if(CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-34200)/60, if(CURRENTTIME>130000,(TIMETOT0(CURRENTTIME)-39600)/60,120)),240); 预测量:IF(BARSTATUS=2,VOL/开盘分钟*240,VOL); 预测量=llv(v,100);
3,
A1:=BARSLAST(ref(cross("macd.diff"(12,26,9),"macd.dea"(12,26,9)),1)); B1:=ref(c,A1+1)>c and ref("macd.diff"(12,26,9),A1+1)<"macd.diff"(12,26,9) and cross("macd.diff"(12,26,9),"macd.dea"(12,26,9)); DRAWTEXT(FILTER(B1>0,5),L-0.12,'M底'),COLORRED; A2:=BARSLAST(ref(cross("kdj.k"(9,9,3),"kdj.d"(9,9,3)),1)); B2:=ref(c,A2+1)>c and ref("kdj.k"(9,9,3),A2+1)<"kdj.k"(9,9,3) and cross("kdj.k"(9,9,3),"kdj.d"(9,9,3)); DRAWTEXT(FILTER(B2>0,5),L-0.08,'K底'),COLORFF00FF; A3:=BARSLAST(ref(cross("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1)); B3:=ref(c,A3+1)>c and ref("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) and cross("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)); DRAWTEXT(FILTER(B3>0,5),L-0.02,'R底'),COLORffcc66; C1:=BARSLAST(ref(cross("macd.dea"(12,26,9),"macd.diff"(12,26,9)),1)); D1:=ref(c,C1+1)<c and ref("macd.diff"(12,26,9),C1+1)>"macd.diff"(12,26,9) and cross("macd.dea"(12,26,9),"macd.diff"(12,26,9)); DRAWTEXT(FILTER(D1>0,5),H+0.24,'M顶'),COLOR0066FF; C2:=BARSLAST(ref(cross("kdj.d"(9,9,3),"kdj.k"(9,9,3)),1)); D2:=ref(c,C2+1)<c and ref("kdj.k"(9,9,3),C2+1)>"kdj.k"(9,9,3) and cross("kdj.d"(9,9,3),"kdj.k"(9,9,3)); DRAWTEXT(FILTER(D2>0,5),H+0.16,'K顶'),COLOR00FF00; C3:=BARSLAST(ref(cross("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1)); D3:=ref(c,C3+1)<c and ref("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) and cross("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
aa:=ma(c,5)>ref(ma(c,5),1) and ref(ma(c,5),1)<ref(ma(c,5),2) and ma(c,10)>ref(ma(c,10),1) and ref(ma(c,10),1)<ref(ma(c,10),2) and "kdj.j">ref("kdj.j",1) and ref("kdj.j",1)<ref("kdj.j",2) and "macd.diff">ref("macd.diff",1) and ref("macd.diff",1)<ref("macd.diff",2); DRAWICON(aa,l,7 );
15,今日虚拟成交量突破N日内最高成交量选股公式
成交量预测: 开盘分钟:=if(CURRENTTIME>93000 and CURRENTTIME<150000, if(CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-34200)/60, if(CURRENTTIME>130000,(TIMETOT0(CURRENTTIME)-39600)/60,120)),240); 预测量:=IF(BARSTATUS=2,VOL/开盘分钟*240,VOL); N:=10;{N自设} cross(预测量,ref(hhv(vol,N),1);
16,DDZ大于30,今日涨幅是7日内最大的但不是涨停板,能在K线上显示“警惕”字样
drawtext("ddz.ddz">30 and close/ref(close,1)=hhv(close/ref(close,1),7) and close/ref(close,1)<1.0975,low,'警惕'),coloryellow;
(c-ref(c,30))/ref(c,30)*100<10 and count("ddx.ddx">0,10)>6 or last("ddx.ddx">0)>=2 and ma(c,5)>ma(c,10) and ma(c,10)>ma(c,20) and ma(c,20)>ma(c,30) and ma(c,30)>ma(c,60) and ma(c,60)>ma(c,120) and between((c-ref(c,1))/ref(c,1)*100,-2,2); 18,股性比较活跃的公式
a:=sum(vol,3); b:=ref(sum(vol,4),3); c1:=ref(sum(vol,5),7); close/ref(c,3)>1.04 and a>=b*1.3 and ref(c/ref(c,4),3)<1.02 and b<c1*0.6 and ref(c/ref(c,5),7)>1.08;
24,布林线三线缩小后向上开口(上线前天小于昨天今天大于昨天),同时收盘价大于ema21天均线
ref(last("boll.upper"<ref("boll.upper",1)),1)>=3 and close>ema(c,21) and "boll.upper">ref("boll.upper",1);
25,涨停后N日内回采M日线公式,N和M可调
input.:N(5),M(10); var1:=barslast(close/ref(close,1)>1.0975); var1<=N and close<ma(c,M);
或
input.:n(6),m(3); aa:=BARSLAST(CLOSE/REF(CLOSE,1)>=1.1); BARSLAST(l<ma(c,m) and c>ma(c,m))=aa+n;
26,当天量比〉2,之前2周内有过涨停,两周内出现过换手率<1%
DYNAINFO(17)>2 and count((c-ref(c,1))/ref(c,1)*100>9.97,10)>=1 and count(v/capital*100<1,10)>=1;
27,跌幅达30%的选股公式
N:=10; close/ref(c,N)<0.7;{10天跌幅大于30%}
28,60分钟5小时线拐头向上的选股公式
ma(c,5)>ref(ma(c,5),1) and ref(last(ma(c,5)<ref(ma(c,5),1),1)>=3;
29,股价一底比一底低,MACD的DIFF一底比一底高(2个底),(不用金叉或二次金叉),
llv("macd.diff",10)>llv("macd.diff",20) and l=llv(l,20);
30,股价与量比底背离的选股公式
ma(c,3)=llv(ma(c,3),20) and ma(v,3)>ref(ma(v,3),1);
31,收盘价高于20日内最高价(也高于上影线的高价),成交量小于20日均量的4倍
c>=hhv(h,20) and v<ma(v,20)*4;或cross(c,ref(hhv(h,20),1)) and vol<ma(vol,20)*4;
vol>ref(vol,1) and cross("macd.diff","macd.dea") and close>open and ref(c,1)<ref(o,1) and c>ref(h,1) and o<ref(low,1) and close/ref(c,1)<1.04 and close>ma(c,60);
33,T字线的公式
o=c and o=h and l<>o;
34,分时图量价齐升的选股公式
last(vol>ref(vol,1) and close>ref(c,1))>=5;{分时周期}
35,.macd底背离预警公式
LLV(L,55)=L AND NOT(LLV("MACD.MACD",55)="MACD.MACD");{MACD底背离};
36,DDX连续放大三天 三天涨幅小于5?
last("ddx.ddx">ref("ddx.ddx",1))>=3 and close/ref(c,3)<1.05;
60,n横盘天数,n1横盘的上下幅度 REF(((HHV(H,N)-LLV(L,N))/LLV(L,N)),1)<=(n1/100) and ref(v,1)<ref(ma(v,5),1) and cross(v,ma(v,5)) and cross(v,ma(v,10));
61,收盘价连续8天都站在5日均线的股票。 count(c>ma(c,5),8)=8;
62,振幅大于5%,收盘价大于3.5小于15元,三日均线大于昨日的三日均线,去掉
ST股。 a1:=h/l>1.05; a2:=c>3.5 and c<15; a3:=ma(c,3)>ref(ma(c,3),1); xg:a1 and a2 and a3; 63,收盘价下有60天前的远期获利盘n%。 {60天前的远期获利盘:=ppart(60)*100;} aa:WINNER(ref(c,60 ))*100;
64,连续三日收阳 后日收盘高于前日 且每日收于当日最高价附近 每日涨幅不大
于4% 选股:count(c>o and c>ref(c,1) and abs((h-c)/c)<0.01 and c/ref(c,1)