條件選股公式——短線是銀之輕松過(guò)頭
NDA := HHVBARS(HIGH,120); {120日內(nèi)最高價(jià)的周期數(shù)} NDAY1:= NDA-10; {最高點(diǎn)之后10日} NDAY2:= NDA+10; {莊家應(yīng)該在NDAY1--NDAY2之間吸納大部分籌碼} A1 := NDA>=30;{確保高點(diǎn)出現(xiàn)的周期數(shù)大于30} A2 := REF(SUM(VOL,20),NDAY1) > FINANCE(7) * 0.4; {吸納40%} VMA:=MA(VOL,40);{40日量均線} A3:=COUNT(VOL<VMA,NDAY1)/NDAY1>0.9;{成交量呈現(xiàn)芝麻點(diǎn)} A4:=CLOSE>=HHV(HIGH,120);{股價(jià)在沖擊前高位} A5:=COUNT(VOL<(MA(VOL,10)*1.3),10)>8;{近期無(wú)明顯放量} A1 AND A2 AND A3 AND A4 AND A5 條件選股公式——短線是銀之倒掛老鴨頭 MA5 := MA(CLOSE,5); MA10 := MA(CLOSE,10); MA60 := MA(CLOSE,60); PDAY1 := BARSLAST(CROSS(MA60,MA5));{5日均線下穿60日均線} PDAY2 := BARSLAST(CROSS(MA60,MA10));{10日均線下穿60日均線,,至此形成鴨頸部} PDAY3 := BARSLAST(LOW=LLV(LOW,PDAY2));{形成頭部,,要反彈} PDAY4 := BARSLAST(CROSS(MA5,MA10));{反彈后,5日均線和10日均線金叉} PDAY5 := BARSLAST(CROSS(MA10,MA5));{反彈不久,,5日均線和10日均線形成死叉,形成嘴部} A1:= PDAY1>PDAY2 AND PDAY2>PDAY3 AND PDAY3>PDAY4 AND PDAY4>PDAY5 AND PDAY5<5; A2:= COUNT(CROSS(MA10,MA5),PDAY2)=1; A1 AND A2 條件選股公式——短線是銀之價(jià)托 {N1(2,200,20)N2(2,200,40)N3(2,200,60)} MA1:=MA(CLOSE,N1); MA2:=MA(CLOSE,N2); MA3:=MA(CLOSE,N3); TUO:=COUNT(CROSS(MA1,MA2),21)=1 AND CROSS(MA2,MA3) AND COUNT(CROSS(MA1,MA3),21)=1 AND BARSLAST(CROSS(MA1,MA2))>BARSLAST(CROSS(MA1,MA3)) AND BARSLAST(CROSS(MA1,MA3))>BARSLAST(CROSS(MA2,MA3)) AND MA1>REF(MA1,1); 條件選股公式——短線是銀之三金叉見(jiàn)底 ND := 5; DOWN := CLOSE/LLV(LOW,60)<=1.2; PMA1 := MA(CLOSE,5); PMA2 := MA(CLOSE,10); VMA1 := MA(VOL,5); VMA2 := MA(VOL,10); DIFF := EMA(CLOSE,12) - EMA(CLOSE,26); DEA := EMA(DIFF,9); PPDAY := BARSLAST(CROSS(PMA1,PMA2)); YDAY := BARSLAST(CROSS(VMA1,VMA2)); MACDDAY := BARSLAST(CROSS(DIFF,DEA)); SJCJD:= IF((PPDAY<=ND AND DAY<=ND AND MACDDAY<=ND),1,0); SJCJD 條件選股公式——短線是銀之雙價(jià)托 {N1(1,300,20)N2(1,300,40)N3(1,300,60)} MA1:=MA(CLOSE,N1); MA2:=MA(CLOSE,N2); MA3:=MA(CLOSE,N3); TUO:=COUNT(CROSS(MA1,MA2),21)=1 AND CROSS(MA2,MA3){COUNT(CROSS(MA2,MA3),21)=1} AND COUNT(CROSS(MA1,MA3),21)=1 AND BARSLAST(CROSS(MA1,MA2))>BARSLAST(CROSS(MA1,MA3)) AND BARSLAST(CROSS(MA1,MA3))>BARSLAST(CROSS(MA2,MA3)) AND MA1>REF(MA1,1); A1:=TUO AND REF(BARSLAST(TUO),1)<89; 條件選股公式——短線是銀之東方紅大陽(yáng)升 HSL:=V/CAPITAL*100; YB:=HSL>4 AND C>REF(C,1); A1:=COUNT(YB,13)>=3; A2:=C/REF(C,1)>1.049 AND HSL>5; A3:=REF(SUMBARS(V,CAPITAL),13)>89; A4:=HIGH/C<1.021; A5:=COUNT(C/REF(C,1)>1.04,10)<5; A6:=IF(COUNT(HSL>4,5)>=3,0,1); ZTJ:=A1 AND A2 AND A3 AND A4 {AND A5 AND A6}; ZTJ AND (REF(BARSLAST(ZTJ),1)>20 OR BARSSINCE( ZTJ)=0) 條件選股公式——短線是銀之多方疊疊炮 A1:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN; TJ:=A1 AND REF(BARSLAST(A1),1)<9 AND C/REF(C,10)>1.1; 條件選股公式——短線是銀之獵豹出擊 M1:=MA(C,60); A1:=COUNT(C<M1,33)>31; A2:=CROSS(C,M1); A3:=C/REF(C,1)>1.045; A1 AND A2 AND A3 條件選股公式——短線是銀之金蜘蛛 {N1(1,300,5)N2(1,300,10)N3(1,300,20)} MA1:=MA(CLOSE,N1); MA2:=MA(CLOSE,N2); MA3:=MA(CLOSE,N3); A1:=COUNT(CROSS(MA2,MA3),2)=1; A2:=COUNT(CROSS(MA1,MA3),2)=1; A1 AND A2 條件選股公式——短線是銀之多方炮 A1:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN; A1 條件選股公式——短線是銀之天上井地下井 M1:=MA(C,5); M2:=MA(C,10); M3:=MA(C,20); M4:=MA(C,30); TSJ:=COUNT(CROSS(M3,M1),21)=1 AND COUNT(CROSS(M4,M1),21)>0 AND COUNT(CROSS(M3,M2),21)>0 AND COUNT(CROSS(M4,M2),21)>0; MM1:=MA(V,5); MM2:=MA(V,10); MM3:=MA(V,20); MM4:=MA(V,30); DXJ:=COUNT(CROSS(MM3,MM1),21)=1 AND COUNT(CROSS(MM4,MM1),21)>0 AND COUNT(CROSS(MM3,MM2),21)>0 AND COUNT(CROSS(MM4,MM2),21)>0; ZTJ:=COUNT(TSJ,13)>0 AND COUNT(DXJ,13)>0; ZTJ AND (REF(BARSLAST(ZTJ),1)>20 OR BARSSINCE( ZTJ)=0) 條件選股公式——短線是銀之青龍取水 A1:=MIN(MA(C,5),MA(C,10))>MA(C,60) AND CROSS(MA(C,5),MA(C,10)); A2:=MIN(MA(C,5),MA(C,10))/MA(C,60)<1.05; A3:=COUNT(V<MA(V,10),10)>6; A1 AND A2 AND A3 條件選股公式——短線是銀之一陽(yáng)上穿三角托 {N1(1,300,20)N2(1,300,40)N3(1,300,60)} MA1:=MA(CLOSE,N1); MA2:=MA(CLOSE,N2); MA3:=MA(CLOSE,N3); TUO:=COUNT(CROSS(MA1,MA2),21)=1 AND CROSS(MA2,MA3){COUNT(CROSS(MA2,MA3),21)=1} AND COUNT(CROSS(MA1,MA3),21)=1 AND BARSLAST(CROSS(MA1,MA2))>BARSLAST(CROSS(MA1,MA3)) AND BARSLAST(CROSS(MA1,MA3))>BARSLAST(CROSS(MA2,MA3)) AND MA1>REF(MA1,1); A1:=C>MAX(MA1,MAX(MA2,MA3)) AND O<MIN(MA1,MIN(MA2,MA3)); A2:=COUNT(A1,21)=1; TUO AND A2 條件選股公式——短線是銀之量頂天立地 A1:=V=HHV(V,120); A2:=C/OPEN>1.049; TJ:=A1 AND A2; TJ AND (REF(BARSLAST(TJ),1)>80 OR BARSSINCE(TJ)=0); 條件選股公式——短線是銀之量托 {N1(1,100,5)N2(1,100,10)N3(1,100,20)} MA1:=MA(V,N1); MA2:=MA(V,N2); MA3:=MA(V,N3); TUO:=COUNT(CROSS(MA1,MA2),21)=1 AND CROSS(MA2,MA3){COUNT(CROSS(MA2,MA3),21)=1} AND COUNT(CROSS(MA1,MA3),21)=1 AND BARSLAST(CROSS(MA1,MA2))>BARSLAST(CROSS(MA1,MA3)) AND BARSLAST(CROSS(MA1,MA3))>BARSLAST(CROSS(MA2,MA3)) AND MA1>REF(MA1,1); TUO 條件選股公式——短線是銀之黑馬草上飛 LCZ:=(C-MA(C,60))/MA(C,60)*100; A1:=COUNT(MA(C,60)>REF(MA(C,60),1),100)>95; A2:=COUNT(LCZ<20,100)>95; A3:=COUNT(C>MA(C,60),100)>80; A4:=C/REF(C,1)>1.04; A5:=V/CAPITAL*100>2.8; ZTJ:=A1 AND A2 AND A3 AND A4 AND A5; ZTJ AND (REF(BARSLAST(ZTJ),1)>20 OR BARSSINCE( ZTJ)=0) 條件選股公式——短線是銀之放量過(guò)頭 highprice := hhv(high,60); {60日內(nèi)最高價(jià)} A1:= Close>highprice;{股價(jià)在沖擊前高位} A2:= (vol>ma(vol,5)*2.5) or (COUNT(Vol>ma(vol,10),6)>4);{近期明顯放量} A1 AND A2 |
|