能解決絕大多數(shù)選股問題的選股公式(續(xù))
{1、每股公積金大于5元。 凈資產(chǎn)收益率連續(xù)3年大于13%的選股公式 between(slope(ma(c,250),20),0.36,0.57); {年線在20度和30度之間} between(slope(ma(c,250),20),0.36,0.57); {年線在20度和30度之間} 2,“預(yù)測(cè)成交量”公式指標(biāo),做一個(gè)能預(yù)測(cè)當(dāng)天的成交量是100日地量的公式 開盤分鐘:=if(CURRENTTIME>93000 and CURRENTTIME<150000, if(CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-34200)/60, if(CURRENTTIME>130000,(TIMETOT0(CURRENTTIME)-39600)/60,120)),240); 預(yù)測(cè)量:IF(BARSTATUS=2,VOL/開盤分鐘*240,VOL); 預(yù)測(cè)量=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)); 4,股票的行業(yè)板塊信息了 DRAWTEXTABS(0,10,BKNAME); 5,20度的正切值是0.36 30度的正切值是0.54 between(slope(ma(c,120),20),0.36,0.57); {半年線在20度和30度之間} 6,五日換手率和五日漲幅公式, sum(vol/capital*100,5);{五日換手率} (close/ref(c,1)-1)*100;{五日漲幅} 7,連續(xù)2天出現(xiàn)KDJ周線金叉日線KDJ金叉的選股公式 count(cross("kdj.k","kdj.j") or cross("kdj.k#week","kdj.j#week"),2)=2; 8,在2天里出現(xiàn)KDJ周線金叉,KDJ日線金叉的選股公式 count(cross("kdj.k","kdj.j") and cross("kdj.k#week","kdj.j#week"),2)=1; 9,一個(gè)股價(jià)突破最近高點(diǎn)的選股公式,指的是最近的一個(gè)波段的高點(diǎn) N:=20; cross(close,ref(hhv(c,N),1));{突破N最高點(diǎn),N可以自設(shè)} 10, 60均線向上,股價(jià)在60日均線正負(fù)1% between(c,ma(c,60)*1.01,ma(c,60)*0.99) and last(ma(c,60)>ref(ma(c,60),1))>10; 11,高開低走,但今天的股價(jià)是上漲的 o>ref(c,1) and c<o and (c-ref(c,1))/ref(c,1)*100>0; 12,利用一個(gè)籌碼90%成本集中度或火焰山指標(biāo)選股的公式 INTPART((CEILING(COST(50+90/2)*100)/100-FLOOR(COST(50-90/2)*100)/100) /(CEILING(COST(50+90/2)*100)/100+FLOOR(COST(50-90/2)*100)/100)*1000)/10<10;{90%籌碼集中度} 火焰山暫時(shí)沒有條件選股。. 13,大盤的分時(shí)圖做個(gè)指標(biāo)放在個(gè)股分時(shí)的副圖里,那個(gè)黃色的均價(jià)線也要有的 "sh000001$close"; 均價(jià):ma("sh000001$close",0); 14,10日線和5日線,kdj中的j和macd中的diff值均上翹,發(fā)出買入信號(hào) 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日內(nèi)最高成交量選股公式 成交量預(yù)測(cè): 開盤分鐘:=if(CURRENTTIME>93000 and CURRENTTIME<150000, if(CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-34200)/60, if(CURRENTTIME>130000,(TIMETOT0(CURRENTTIME)-39600)/60,120)),240); 預(yù)測(cè)量:=IF(BARSTATUS=2,VOL/開盤分鐘*240,VOL); N:=10;{N自設(shè)} cross(預(yù)測(cè)量,ref(hhv(vol,N),1); 16,DDZ大于30,今日漲幅是7日內(nèi)最大的但不是漲停板,能在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; 17, 1、30日內(nèi)漲幅<10%。2、10日內(nèi)DDX紅柱超過6天或連續(xù)2天飄紅。3、均線多頭排列,5日線在10日線以上。4、當(dāng)日:漲幅在-2%---2%,橫盤時(shí)間超過2小時(shí) (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,股性比較活躍的公式 ma(high/low,30)>1.055;{平均每天振幅大} 或 SUM(VOL,10)/CAPITAL>=(50/100) and BARPOS>1000; 19,今日量比大于1小于3的公式, DYNAINFO(17)>1 and DYNAINFO(17)<3; 20,問題1、3日前出現(xiàn)向上跳空缺口3日內(nèi)股價(jià)一直在缺口上運(yùn)行。問題2:股價(jià)回調(diào)到前期跳空缺口處上方 1. ref(o,2)>ref(h,3) and llv(low,3)=ref(o,2); 2. close/ref(o,2)>1 and close/ref(o,2)<1.02; 21,對(duì)過去某一天的漲幅進(jìn)行排序 aa:=(c-ref(c,1))/ref(c,1)*100; ref(aa,1);{昨日漲幅排序,前天就把a(bǔ)a后面的數(shù)字改為2}; 22,在動(dòng)態(tài)版面上排序里增加去掉ST股和上市不滿30天的股票排序 (strcmp(stkname,'st')=-1 or strcmp(stkname,'*st')=-1)=0{濾除ST股票} BARPOS>30{上市天數(shù)大于30};。 23,三天成交量之和為a,三天漲幅大于等于4%,a為b的1.3倍,a之前四天成交量總和為b,四天漲幅小于等于2%,b小于c的0.6,b之前5天成交量總和為c,5天漲幅大于等于8%, 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,布林線三線縮小后向上開口(上線前天小于昨天今天大于昨天),同時(shí)收盤價(jià)大于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日內(nèi)回采M日線公式,N和M可調(diào) 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,當(dāng)天量比〉2,之前2周內(nèi)有過漲停,兩周內(nèi)出現(xiàn)過換手率<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,跌幅達(dá)30%的選股公式 N:=10; close/ref(c,N)<0.7;{10天跌幅大于30%} 28,60分鐘5小時(shí)線拐頭向上的選股公式 ma(c,5)>ref(ma(c,5),1) and ref(last(ma(c,5)<ref(ma(c,5),1),1)>=3; 29,股價(jià)一底比一底低,MACD的DIFF一底比一底高(2個(gè)底),(不用金叉或二次金叉), llv("macd.diff",10)>llv("macd.diff",20) and l=llv(l,20); 30,股價(jià)與量比底背離的選股公式 ma(c,3)=llv(ma(c,3),20) and ma(v,3)>ref(ma(v,3),1); 31,收盤價(jià)高于20日內(nèi)最高價(jià)(也高于上影線的高價(jià)),成交量小于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; 32,成交量比前一日放大,MACD金叉之后,第一根紅柱,K線陽包陰,漲幅小于4個(gè)點(diǎn)。站在60天均線之上 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,分時(shí)圖量?jī)r(jià)齊升的選股公式 last(vol>ref(vol,1) and close>ref(c,1))>=5;{分時(shí)周期} 35,.macd底背離預(yù)警公式 LLV(L,55)=L AND NOT(LLV("MACD.MACD",55)="MACD.MACD");{MACD底背離}; 36,DDX連續(xù)放大三天 三天漲幅小于5? last("ddx.ddx">ref("ddx.ddx",1))>=3 and close/ref(c,3)<1.05; 40,4天之內(nèi)收盤價(jià)上穿10天均線的4%回踩10天線4天之內(nèi)收盤價(jià)低于60天均線 count(cross(c,ma(c,10)*1.04),4)=1 and l<ma(c,10) and c>ma(c,10) and last(c<ma(c,60))=4; 41,MACD在0柚附近粘合;5.10.20.30.60均線粘合 max(ma(C,5),ma(C,10),ma(C,20),ma(C,30),ma(C,60))/min(ma(C,5),ma(C,10),ma(C,20),ma(C,30),ma(C,60))<1.05; {粘合} between("macd.diff",ma(abs("macd.macd"),100)/8,-ma(abs("macd.macd"),100)/8) and between("macd.dea",ma(abs("macd.macd"),100)/8,-ma(abs("macd.macd"),100)/8); 42,跌幅排名前20跌幅大于6?x大于0.2的公式做預(yù)警 close/ref(close,1)<0.94 and "ddx.ddx">0.2; 43,在K線上看到濟(jì)安線的公式 input.:n(30, 2, 100, 1),m(3, 1, 15, 1); AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,N))/MA(CLOSE,N); 濟(jì)安線:DMA((2*CLOSE+LOW+HIGH)/4,AA),LINETHICK3,COLOrff00ff; CC:=(CLOSE/濟(jì)安線); MA1:=MA(CC*(2*CLOSE+HIGH+LOW)/4,3); MAAA:=((MA1-濟(jì)安線)/濟(jì)安線)/3; TMP:=MA1-MAAA*MA1; PARTLINE(濟(jì)安線,TMP<=濟(jì)安線,RGB(0,255,255)),LINETHICK3; A:TMP,LINETHICK2,COLORYELLOW; PARTLINE(TMP,TMP<=濟(jì)安線,RGB(0,255,0)),LINETHICK2; 44,50天內(nèi)橫盤漲跌幅正負(fù)上下不超5%近期量能萎縮極致并且近10日內(nèi)DDX連紅大于4天的選股公式 hhv(close,50)/llv(close,50)<1.05 and count("ddx.ddx">0,10)>=4 或 hhv(c,50)/llv(c,50)<1.05 and ma(c,10)=llv(ma(c,10),100) and last("ddx.ddx">0)>4; 45,20日內(nèi)換手率較大、漲幅較小的選股公式 sum(vol/capital*100,20)>250 and capital/100>10000 and (c-ref(c,20))/ref(c,20)*100<10; 46,連續(xù)上漲7天與連續(xù)調(diào)整7天.二個(gè)公式 last(close>ref(close,1))>=7;{連漲} last(close<ref(close,1))>=7;{連跌} 47,{前面出現(xiàn)階段性高點(diǎn)}{要求前兩天均出現(xiàn)跳空開盤,且是兩連陰}{要求兩連陰的前一天是陽K線}{今天跳空開盤 ref(isdown and open<ref(close,1),1) and ref(isdown and open<ref(close,1),2) and ref(isup,3) and open>ref(close,1); 48,股價(jià)離年線正負(fù)不過十的公式 between(close,ma(close,250)*0.9,ma(close,250)*1.1) and barscount(c)>250; 49,一個(gè)階段(如10天)漲幅大于10的個(gè)股公式 close/ref(close,10)>1.10; 50,條件選,26.30.60,181天粘合4個(gè)點(diǎn)左右 INPUT.:N(0.04); A1:=ABS(MA(C,30)/MA(C,60)-1)<N; A2:=ABS(MA(C,26)/MA(C,30)-1)<N; A3:=ABS(MA(C,26)/MA(C,60)-1)<N; A4:=ABS(MA(C,26)/MA(C,180)-1)<N; A1 AND A2 AND A3 AND A4; 51,昨日跌幅小于3% and 前天大前天兩天合計(jì)跌幅小于7% and 前天大前天兩天合計(jì)振幅小于10%的公式 between(ref(close/ref(close,1),1),0.97,1) and between(ref(close,2)<ref(close,4),0.93,1) and ref(hhv(high,2),2)/ref(llv(low,2),2)<1.1; 52,三日換手率之和的排序公式及三日累計(jì)漲跌幅之和的排序公式 sum(vol/capital,3);{換手} close/ref(close,3);{漲幅} 53,30日均線走平轉(zhuǎn)為上升的指標(biāo) slope(ma(c,30),5)>0 and last(slope(ma(c,30),5)>ref(slope(ma(c,30),5),1))>=5; 54,在6日內(nèi)日線上漲放量,下跌縮量的選股公式 a1:=barslast(c>o); a2:=barslast(c<o); ref(v,a1)>ref(v,a2); 55,昨日兩市漲幅榜前30名的選股公式 (c-ref(c,1))/ref(c,1)*100;{漲幅公式} 56,一個(gè)開盤至十一點(diǎn)最大漲幅小于1%,最大跌幅大于-1%的公式 var1:=barscount(c); var1>90 and ref(hhv(close,90),var1-90)<dynainfo(3)*1.01 and ref(llv(close,90),var1-90)>dynainfo(30*0.99; {用于分時(shí)圖} 57,5日均線走平 last(between(ma(c,5),ref(ma(c,5),1)*0.998,ref(ma(c,5),1)*1.002))>=3; 58,在當(dāng)天盤中,成交量創(chuàng)盤中2倍,這么編寫!比如說9.45,是200,手成交量。到了11點(diǎn)是400手成交量!在個(gè)位置顯示成交量指標(biāo) sum(v,barscount(c)/2)> sum(v,0)-sum(v,barscount(c)/2)*2; {周期用分時(shí)} 59,橫盤后均線發(fā)散向上,尾盤突然拉升的;成交量放大的;換手率比之前大的;5日內(nèi)累計(jì)漲幅不超過5%的。 between(close/ref(close,5),1,1.05) and vol>ref(vol,1)*1.3 and isup and close/open>1.02; 60,最近的5天(不包含今天)MACD連續(xù)下降,但是MACD>0 ,今天MACD又向上發(fā)散,10天內(nèi)DDX飄紅>5天 ref(last("macd.macd"<ref("macd.macd",1) and "macd.macd">0),1)>=5 and "macd.macd">ref("macd.macd",1) and count("ddx.ddx">0,10)>5; 61,5天內(nèi)最高的漲幅小于5% 的公式不是5天累計(jì)漲幅 between(hhv(close,5)/ref(close,5),1,1.05); 62,股價(jià)上漲,長(zhǎng)陽突破EXPMA 60 90 120 250多根均線(一陽站四線),同時(shí)EXPMA30均線拐頭向上 cross(close,ema(c,60)) and cross(close,ema(c,90)) and cross(close,ema(c,120)) and cross(close,ema(c,250)) and ema(c,30)>ref(ema(c,30),1); 63, 股指期貨分時(shí)指標(biāo) 能安裝個(gè)股分時(shí)附圖上 "if1102$close"; {引用股指期貨} 不能長(zhǎng)期使用嗎 ? 需要修改隨著月份改變! 64,在大智慧VOL公式中,當(dāng)某一日成交量為120天或60天內(nèi)最大時(shí)用黃色表示 k:vol,volstick; stickline(vol=hhv(vol,60),0,vol,8,0),coloryellow; 65,本周換手率是最近10周的最低換手率的股票 hsl:=vol/capital*100; hsl=llv(hsl,10);{分析周期:周} V/CAPITAL*100=LLV(V/CAPITAL*100,10);{分析周期選擇周線} 66,連續(xù)芝麻量 的選股公式 SUM(VOL,5)/CAPITAL<=(5/100) AND LAST(V<REF(V,1))>=3; 67,排除3天以上停牌的股票,3天可以任意調(diào),股票池用 currentdate-(date+19000000)<=3; 68,選出30天內(nèi)跌幅30%以上的股票 (C-REF(C,30))/REF(C,30)*100<-30; 69,今日最低價(jià)小于向前數(shù)第7日收盤價(jià),但大于前8日的最高價(jià)呢 low<ref(close,7) and low>ref(high,8); 70,今日成交量大于前5天中的某一天的成交量的最大值 vol=hhv(vol,6); 71,今日換手率介于5%~10%之間,并且今日換手率是昨天換手率的1倍和3倍之間 hsl:=vol/capital*100; between(hsl,5,10) and between(hsl/ref(hsl,1),1,3); 小于10周均量的25%。 hsl:=vol/capital*100; hsl=llv(hsl,10) and hsl<ma(hsl,10)*0.75; 72, "sh000001$close";{上證指數(shù)} 73,能在動(dòng)態(tài)顯示牌中顯示的市銷率 (FINANCE2(27)/10)/(DYNAINFO(56)/10000); 74,3天前漲幅大于8%,2天前漲幅大于6%的選股公式 ref(c,3)/ref(c,4)>1.08 and ref(c,2)/ref(c,3)>1.06; 75,60分鐘VOL三線粘合金叉的選股公式 cross(ma(vol,5),ma(vol,10)) and cross(ma(vol,5),ma(vol,20));{60分鐘周期} 76,日成交量大于5日.10日.20日均量10%以上的公式 vol>max(ma(vol,5),ma(vol,10),ma(vol,20))*1.1; 77,20均線由下跌狀態(tài)剛剛轉(zhuǎn)為上升前5日是下跌狀態(tài) ma(c,20)>ref(ma(c,20),1) and count(ma(c,20)<ref(ma(c,20),1),6)=5; 78,成交量十幾天里最大量縮到十分之一以上量的選股公式 input.:N(10,1,300,1); vol<hhv(vol,N)/10;{N為天數(shù),可調(diào)} 79,成交量十幾天里最大量縮到十分之一以上量的選股公式 count(vol<=hhv(vol,10)/10,10)>=1; 80,1.股價(jià)回到前期(N天前)低點(diǎn),2.當(dāng)天股價(jià)在2點(diǎn)30分鐘前均在分時(shí)均價(jià)上方,3.當(dāng)天振幅小于5%. 1. input.:n(10); between(c,ref(l,n)*1.01,ref(l,n)*0.99); 2.TODAYBARS:=barscount(close); AA:=if(sum(amount,todaybars)/sum(vol,todaybars)>0,sum(amount,todaybars)/sum(vol,todaybars)/100,dynainfo(4)); last(c>AA)>=210 and DYNAINFO(14)<>0; 3 DYNAINFO(13)<0.05; 81,可選月線或周線突破箱體 hhv(c,20)/llv(c,20)<1.15 and cross(close,ref(hhv(close,20),1)); 82,同時(shí)滿足下面條件,連續(xù)三年總資產(chǎn)增長(zhǎng),連續(xù)三年扣除非經(jīng)常性損益的凈利潤增加,連續(xù)三年凈資產(chǎn)收益率增加,連續(xù)兩年資產(chǎn)負(fù)債率減少的公式 setpffin(00001); PFFIN(1083 ,0)> PFFIN(1083 ,1) and PFFIN(1083 ,1)> PFFIN(1083 ,2) {總資產(chǎn)} and PFFIN(1008 ,0)>PFFIN(1008 ,1) and PFFIN(1008 ,1)>PFFIN(1008 ,2) {扣除非經(jīng)常性損益的每股收益} and PFFIN(1002 ,0)>PFFIN(1002 ,1) and PFFIN(1002 ,1)>PFFIN(1002 ,2) {凈資產(chǎn)收益率} and PFFIN(1701 ,0)<PFFIN(1701 ,1) {資產(chǎn)負(fù)債率} 83,前兩天是陽線,第三天高開陰十字星,第四天突破陰十字星的選股公式 BETWEEN(REF(CLOSE,1),REF(OPEN,1)*0.999,REF(OPEN,1)*0.998) AND REF(H,1)<>REF(C,1) and REF(L,1)<>REF(C,1) AND CROSS(C,REF(H,1)) AND REF(C,2)>REF(O,2) AND REF(C,3)>REF(O,3) |
|