1.攻擊選股:用本公式所選出來的個股正處于放量上攻過程之中,日線系統(tǒng)和周線系統(tǒng)都很好 A1:=DYNAINFO(4)>1.01*ref(c,1);{高開1%以上} A2:=DYNAINFO(7)>ma(c,10);{現(xiàn)價處于10日均線上方} A3:=ma(c,5)>ma(c,10) and ma(c,10)>ma(c,20); A4:=DYNAINFO(14)>2/100 and L>1.01*ref(c,1);{漲幅大于2%且最低價上漲1%} A5:=DYNAINFO(17)>2; A6:=ma(c,5)>ref(ma(c,5),1); A7:=ma(c,10)>ref(ma(c,10),1); A8:=ma(c,20)>ref(ma(c,20),1); A9:=KDJ.K>KDJ.D; A10:=MA(C#WEEK,5)>REF(MA(C#WEEK,5),1); A11:=MACD.DEA>REF(MACD.DEA,1); A12:=MACD>REF(MACD,1)>0; A13:=KDJ.K#WEEK>=KDJ.D#WEEK;{周KDJ的K值大于等于D值} A14:=MACD.DIF#week>MACD.DEA#WEEK; A15:=A1 AND A2 AND A3 AND A4; A16:=A5 AND A6 AND A7 AND A8; A17:=A9 AND A10 AND A11 AND A12; A18:=A13 AND A14; A15 AND A16 AND A17 AND A18; 2.平常選股 (1)大盤表現(xiàn)好時的選股:本選股公式用于平時選股,盤中選也可以。所選出來的股票強于大盤,處于上升趨勢,日線系統(tǒng)和周線系統(tǒng)都比較好。還可以根據(jù)本方法選出的個股的多少來判斷大盤接下來走強或走弱。比如,能選出的股票遠少于100只,說明很多個股不具備上漲基礎,大盤接下來走弱的概率較大。能選出的股票超過200只,哪說明大盤接下來走強的可能性較大。由于本方選出來的股票很多,需要進一步精選才能確定目標股。 A1:=DYNAINFO(14)>0.01;{漲幅大于1%} A2:=C>ma(c,10); A3:=ma(c,5)>ref(ma(c,5),1); A4:=ma(c,10)>ref(ma(c,10),1); A5:=ma(c,20)>ref(ma(c,20),1); A6:=ma(c,5)>ma(c,10) and ma(c,10)>ma(c,20); A7:=MACD>0; A8:=ma(vol,5)>ma(vol,10); DPZD:=(indexc-ref(indexc,1))/ref(indexc,1); GGZD:=(c-ref(c,1))/ref(c,1); QRD:=GGZD-DPZD; PH:=EMA(QRD,20); A9=PH>0; A10:=MA(C#WEEK,5)>REF(MA(C#WEEK),5),1); A11:=MA(C#WEEK,5)>MA(C#WEEK,10); A12:=KDJ.K#WEEK>=KDJ.D#WEEK; A13:=A1 AND A2 AND A3 AND A4; A14:=A5 AND A6 AND A7 AND A8; A15:=A9 AND A10 AND A11 AND A12; A13 AND A14 AND A15; (2)大盤處于回調(diào)時的選股:本公式也用于平時選股,但多在大盤處于回調(diào)時使用。所選出來的股票也強于大盤,處于上升趨勢,日線系統(tǒng)和周線系統(tǒng)都比較好。但這公式所選出業(yè)的股票當天并不一定是上漲的,處于回調(diào)之中,但趨勢仍保持完好的個股也能選出。在大盤表現(xiàn)強勁時不用這個公式,是因為那時用該公式可能選出的股太多。但大盤處于回調(diào)時,用上面一個公式選出的個股明顯減少,我們就加大了關注的范圍。因為大盤回調(diào)時,我們最好是逢低買入,那些趨勢保持完好,但調(diào)整中縮量的個股是我們此時關注的重點對象。但選出的股票僅用于關注,不宜馬上買入,是否買入,還要結(jié)合更多的其他條件綜合考慮。 A1:=C>MA(C,10); A2:=ma(c,10)>ref(ma(c,10),1); A3:=ma(c,20)>ref(ma(c,20),1); A4:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20); A5:=MACD>0; B1:=C<REF(C,1); B2:=240*VOL/FROMOPEN<REF(V,1); B3:=240*VOL/FROMOPEN>1.1*REF(V,1); A6:=IF(B1,B2,B3); DPZD:=(indexc-ref(indexc,1))/ref(indexc,1); GGZD:=(c-ref(c,1))/ref(c,1); QRD:=GGZD-DPZD; PH:=EMA(QRD,20); A7:=PH>0; A8:=MA(C#WEEK,5)>REF(MA(C#WEEK),5),1); A9:=MA(C#WEEK,5)>MA(C#WEEK,10); A10:=KDJ.K#WEEK>=KDJ.D#WEEK; A11:=A1 AND A2 AND A3 AND A4; A12:=A5 AND A6 AND A7 AND A8; A9 AND A10 AND A11 AND A12; 3、沖漲停股:本選股公式用于盤中捕捉有漲停潛質(zhì)的個股。量比較大,說明所選出來的個股當日交投比前幾天大大活躍,這就意味著可能大漲或大跌。再從已有3%的漲幅上限制,說明股價已經(jīng)選擇了運行方向,就可以得出上漲概率比較大的結(jié)論。公式再一次從日線系和周線系統(tǒng)進行限制,保證了股價能大漲。最后,限制五個交易日最多只有一天出現(xiàn)股介大漲或大跌,說明籌碼相對穩(wěn)定,乖離率不大,保障了介入資金的安全性。 A1:=DYNAINFO(14)>0.01;{漲幅大于3%} A2:=DYNAINFO(17)>2.5:{量比大于2.5} A3:=DYNAINFO(7)>DYNAINFO(11);{現(xiàn)價處于分時均價線上方} B:=240*VOL/FROMOPEN;{定義慮擬成交量} A4:=B>1.25*REF(VOL,1);{慮擬成交量大于昨日成交量的1.25倍} A5:=MA(C,5)>MA(C,10) AND C>MA(C,5); A6:=MA(C,5)>REF(MA(C,5),1) AND MA(C,10)>REF(MA(C,10),1); A7:=MACD>0; A8:=MA(VOL,5)>MA(VOL,10); A9:=COUNT((ABS(C-REF(C,1))/REF(C,1)<0.06),5)>=4;{過去5天內(nèi)不超過一條大K線} A10:=MA(C#WEEK,5)>REF(MA(C#WEEK,5),1); A11:=MA(C#WEEK,5)>MA(C#WEEK,20); A12:=MACD#WEEK>0; A13:=A1 AND A2 AND A3 AND A4; A14:=A5 AND A6 AND A7 AND A8; A15:=A9 AND A10 AND A11 AND A12; A13 AND A14 AND A15; 4、均線選股:本選股公式可以選出日線系統(tǒng)較好,形態(tài)漂亮,處于上升趨勢的個股。由于公式還對乖離率進行了限制,所以股價與均線的乖離不會很大,適合盤中選到后就擇機進行買入。本公式中N1、N2、N3的默認值都是經(jīng)驗值,需要在使用過程中根據(jù)實際情況進行調(diào)試。參數(shù)設置為INPUT:N1(8,2,100),N2(12,2,100),N3(20,2,100); A1:=MA(C,10); A2:=REF(MA(C,10),1); A3:=A1/A2; A4:=A3>1; A5:=REF(MA(C,10),3); A6:=REF(MA(C,10),4); A7:=A5/A6; A8:=A7>1; A9:=REF(MA(C,10),6); A10:=REF(MA(C,10),7); A11:=A9/A10; A12:=A11>1; A13:=A3>A7 & A7>A11; B1:=A4 AND A8 AND A13; B2:=DYNAINFO(39)>0 AND DYNAINFO(7)>DYNAINFO(11);{市盈率>0 且現(xiàn)價>均價} B3:=DYNAIFO(17)>1.2 AND DYNAIFO(14)>0.01;{量比>1.2且漲幅>1%} B4:=MA(C,10)>MA(C,20); B5:=C>MA(C,10); B6:=MA(C,20)>REF(MA(C,20),1); BIAS1:=100*(C-MA(C,5))/MA(C,5)<N1; BIAS2:=100*(C-MA(C,10))/MA(C,10)<N2; BIAS3:=100*(C-MA(C,20))/MA(C,20)<N3; B7:=BIAS1 OR BIAS2 OR BIAS3; B8:=B1 AND B2 AND B3 AND B4; B9:=B5 AND B6 AND B7; B8 AND B9; 5、周線選股:本選股公式主要對股票的周期系統(tǒng)進行限制,所選出的股票在周線圖上處于上升趨勢,適合于進行中長線投資.但由于我們的買點還得從日線上進行選擇,所以對日線系統(tǒng)也進行了簡單限制,日線系也才能較好選出。 A1:=MA(C,5)>MA(C,10); A2:=MA(C,10)>MA(C,20); A3:=MA(C,20)>REF(MA(C,20),1) A4:=MACD>0; A5:=100*(C-MA(C,20))/MA(C,20)<12;{乖離率不大} A6:=MA(C#WEEK,5)>REF(MA(C#WEEK,5),1); A7:=MA(C#WEEK,10)>REF(MA(C#WEEK,5),1); A8:=MA(C#WEEK,20)>REF(MA(C#WEEK,20),1); A9:=MA(C#WEEK,5)>MA(C#WEEK,10); A10:=MACD#WEEK>0; A11:=O#WWEK<C#WEEK AND C>MA(C#WEEK,5); A12:=COUNT((ABS(C#WEEK-REF(C#WEEK,1))/REF(C#WEEK,1)<0.12,10)>=8; A13:=A1 AND A2 AND A3 AND A4; A14:=A5 AND A6 AND A7 AND A8; A15:=A9 AND A10 AND A11 AND A12; A13 AND A14 AND A15; 6、調(diào)整選股 (1)選出調(diào)整結(jié)束、買點出現(xiàn)的個股:本公式用于選出調(diào)整結(jié)束、買點出現(xiàn)的個股。但能選出的股票極少,而且每只調(diào)整結(jié)束的個股最多只能有一天選出的機會,一旦選到一只,就是一次大好機會。常用于大盤連結(jié)調(diào)整后的盤中選股。其中的參數(shù)N可以根據(jù)大盤調(diào)整的天數(shù)進行調(diào)整,一般N=4或5較為合適,調(diào)整天數(shù)大于參數(shù)N也能選出。 A1:=LAST((MA(V,5)<REF(MA(V,5),1)),N,1);{至昨日前連續(xù)縮量} A2:=LAST((ABS(C-REF(C,1))/REF(C,1)<0.03,N,1){至昨日前均為小陰小陽K線} B:=240*VOL/FROMOPEN; A3:=B>1.25*REF(VOL,1) AND REF(VOL,1)/CAPITAL<0.05; A4:=DYNAINFO(17)>2;{量比大于3} A5:=DYNAINFO(7)>DYNAINFO(11);{現(xiàn)價處于分時均價線上方} A6:=C>REF(H,1) AND C>MA(C,20);{當前股價在20日均線且大于昨日最高價} A7:=MA(C,20)>REF(MA(C,20),1); A8:=MA(C,20)>MA(C,60); A9:=A1 AND A2 AND A3 AND A4; A10:=A5 AND A6 AND A7 AND A8; A9 AND A10; (2)選出調(diào)整仍在繼續(xù)的個股:本公式用于選出仍處于縮量調(diào)之中,但調(diào)速較為充分且形態(tài)尚未被破壞的個股。適合在大盤處于連續(xù)調(diào)整之中使用。所選出的個股不能馬上買入,需要對其進行續(xù)續(xù)觀察。公式中調(diào)整天數(shù)的參數(shù)不能太大(式中已直接用3代替了),因為調(diào)整天數(shù)大于這個參數(shù)的,照樣能選出來。 A1:=LAST((MA(V,5)<REF(MA(V,5),1),3,0); A2:=LAST((ABS(C-REF(C,1))/REF(C,1)<0.03),3,0); A3:=C>MA(C,20); A4:=MA(C,20)>REF(MA(C,20),1); A5:=MACD#WEEK>0; A6:=MA(C,5)#WEEK>MA(C,10)#WEEK; A7:=A1 AND A2 AND A3 AND A4; A5 AND A5 AND A6 AND A7; 7、平臺突破:本公式用于選出當日突破長期整盤平臺,且日線系統(tǒng)和周線系統(tǒng)都較好的個股。公式中對突破當日進行了較為嚴格的限定,要求是放量大陽線,保證突破的有效必。公式中,平如要求的K線條數(shù)用參數(shù)N代替,平臺的最大振幅由參數(shù)M代替,便于我們根據(jù)不同要求進行調(diào)整。參數(shù)設置為INPUT:N(30,10,100),M(30,15,50); ZF:=(HHV(H,N)-LLV(L,N))/LLV(L,N);{定義平臺振幅} CQ:=REF(ZF,1)<M/100;{限定平臺振幅范圍} GL:=BARSCOUNT(C)>N;{過濾掉交易天數(shù)不足平臺要求天數(shù)個股} TP:=C>=REF(HHV(H,N),1);{當前價大于平臺最高價} A1:=CQ AND GL AND TP; A2:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20); A3:=MACD>0; A4:=(C-REF(C,1))/REF(C,1)>6/100;{當日收大陽線} A5:=DYNAINFO(17)>2; B:=240*VOL/FROMOPEN; A6:=B>1.25*REF(VOL,1); A7:=MA(C#WEEK,5)>MA(C#WEEK,10); A8:=MA(C#WEEK,10)>MA(C#WEEK,20); A9:=MACD#WEEK>0; A10:=A1 AND A2 AND A3 AND A4; A11:=A5 AND A6 AND A7 AND A8; A9 AND A10 AND A11; 8、最佳股:本公式綜合了上面其他公式中的優(yōu)點,對不同情況下的成交量作區(qū)別限制,能選出趨勢向上,強于大盤,乖離率不大,而且日線系統(tǒng)和周線系統(tǒng)都較好的個股。公式中對所要求的乖離率數(shù)值用參數(shù)N1、N2、N3代替,便于調(diào)試,其參數(shù)設置為INPUT:N1(8,2,100),N2(12,2,100),N3(20,2,100); A1:=DYNAINFO(14)>0.02; B:=240*VOL/FROMOPEN; B1:=DYNAINFO(17)>2; B2:=B>1.2*REF(VOL,1); B3:=LAST(VOL<REF(VOL,1),4,1); B0:=IF(B3,B1,B2); AA1:=MA(V,5); AA2:=MA(V,10); AA3:=AA1>AA2; AA4:=MA(V,5)>REF(AA1,1); AA5:=MA(V,10)>REF(AA2,1); AA6:=AA3 AND AA4 AND AA5 AND B>REF(V,1); A2:=B0 OR AA6; A3:=DYNAINFO(7)>DYNAINFO(11); JX1:=MA(C,5); JX2:=MA(C,10); JX3:=MA(C,20); A4:JX1>JX2 AND JX2>JX3; BJ1:=JX1>REF(JX1,1); BJ2:=JX2>REF(JX2,1); BJ3:=JX3>REF(JX3,1); A5:=BJ1 AND BJ2 AND BJ3; BIAS1:=100*(C-JX1)/JX1<N1; BIAS2:=100*(C-JX2)/JX2<N2; BIAS3:=100*(C-JX3)/JX2<N3; A6:=BIAS1 AND BIAS2 AND BIAS3; JXW1:=MA(C#WEEK,5); JXW2:=MA(C#WEEK,10); JXW3:=MA(C#WEEK,20); A7:=JXW1>JXW2 AND JXW2>JXW3; A8:=MACD>0; A9:=MACD#WEEK>0; A10:=O#WEEK<C#WEEK; A11:=DYNAINFO(39)>0; A12:=COUNT((ABS(C-REF(C,1))/REF(C,1)<0.06),5)>=4; ZPZD:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1); GGZD:=(C-REF(C,1))/REF(C,1); QRD:=GGZD-DPZD; PH:=EMA(QRD,20); A13:=PH>0; A14:=A1 AND A2 AND A3 AND A4; A15:=A5 AND A6 AND A7 AND A8; A16:=A9 AND A10 AND A11 AND A12; A13 AND A14 AND A15 AND A16; 上述十個自編指標公式,都是經(jīng)過多次測試通過了的,而且實際運行都能選出相應股票,用實踐證明了它們的正確性。如果你也想使用它們,哪要小心輸入。若是在輸入后出現(xiàn)錯誤信息,哪你需要仔細檢查你的輸入是否正確。特別要注意,所有符號都要用英文輸入,每句末尾都不要漏掉結(jié)束符“;”。股票論壇 www.55188 |
|