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); (0002){選股公式} LC := REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),10,1)/SMA(ABS(CLOSE-LC),10,1)*100; 跌破:CROSS(20,RSI); (0003){簡單實(shí)用選股公式} 公式名:波段 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); (0004){選股公式} 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); (0005){選股公式} 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); (0006){選股公式} 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; (0007){狙擊低點(diǎn)選股公式 股價(jià)在上升途中的回調(diào)時(shí),突然走出跌破20日均線的大(中)陰線;第二天走出一根下探的長下影線的K線(陰陽均可)。此K線組合市場意義在于股價(jià)探底回升,之后一般會(huì)走出一段不錯(cuò)的上升行情} 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) ; (0008){分時(shí)橫盤選股公式} tt:=BARSCOUNT(CLOSE); CC:=CLOSE; 均線:=SUM(AMOUNT,0)/SUM(VOL*100,0); 上均:=均線 + AVEDEV(C,tt)*2; 下均:=均線 - AVEDEV(C,tt)*2; 時(shí)長:=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 時(shí)長 and 放量 and CROSS(CC,上均); 突破:FILTER(橫漲,100); (0009){選股公式} 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; (0010){周線買入選股公式} 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); (0011){抄底逃頂選股公式} 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; (0012){選股公式} 多頭線:(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% (0013){選股公式} 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); 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; (0014){選股公式} 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; K:=15; FFILTER:=(K/100)*STD(PR-REF(PR,1),10); XA:=IF(PR<REF(PR,1),PR,0); XN:=BARSLAST(XA>0 ); AMALOW:=REF(PR,XN); YA:=IF(PR>REF(PR,1),PR,0); YN:=BARSLAST(YA>0) ; AMAHIGH :=REF(PR,YN); RR:=IF( AMAHIGH-PR>FFILTER,-1,0) ; TT:=IF( PR- AMALOW>FFILTER,1,RR) ; (0015){絕殺選股公式} VAR1:=(2)*(MA((LLV((CLOSE + LOW)/(2),8))*(1.1),13)) - EMA((CLOSE + LOW)/(2),3) - ((CLOSE + LOW)/(2))*(0.1); VAR2:=IF(((EMA((CLOSE + LOW)/(2),3) - VAR1)*(5) > 0),(POW((EMA((CLOSE + LOW)/(2),3) - VAR1)*(5),2))/(10),(((-1))*(POW((EMA((CLOSE + LOW)/(2),3) - VAR1)*(5),2)))/(10)); VAR3:=IF((VAR2 > 0),VAR2 - 0,(-1)); CROSS(VAR3,0) AND ((CLOSE + LOW)/(2) > MA((CLOSE + LOW)/(2),8)); (0016){老鼠倉選股公式} AA1:=AMOUNT/V; BB1:=L<AA1*0.9; CC1:=(C-REF(C,1))/REF(C,1)*100>1.2; DD1:=L<MA(C,5)*0.921; EE1:=V<MA(V,5)*1.5; FF1:BB1 AND CC1 AND DD1 AND EE1; (0017){選股公式} TJ1:=(SUM((((2)*(CLOSE-CLOSE*0.2)+(OPEN-OPEN*0.2)+(HIGH-HIGH*0.2)+(LOW- LOW*0.2))/(5))*(VOL),8))/(SUM(VOL,8)); TJ2:=C-C*0.2; XG:CROSS(TJ2,TJ1); (0018){選股公式} {兩行kdj} j:"kdj.j"(27,3,3); if(j>0,j,0); {用法:谷底買,峰頂賣}; (0019){超級(jí)短線選股公式} AA:=REF(CLOSE,1); BBB:=SMA(MAX(CLOSE-AA,0),5,1)/SMA(ABS(CLOSE-AA),5,1)*1000; HHH:=BBB-LLV(BBB,10); SS:=(MA(HHH,2)*3+HHH*13)/16; 短線買點(diǎn):IF(SS>13,MA(SS,2),SS); 21; 當(dāng)白色趨勢線接近或者下穿黃色底部線時(shí),表示短線可能見底, 有出現(xiàn)反彈的可能,可以配合其它指標(biāo)配合短線關(guān)注。 (0020){拉升資金選股公式} VAR1:=1; VAR1:=1; VAR3:=LLV(HIGH,240); VAR4:=100*(CLOSE-VAR3)/VAR3*VAR1; VAR5:=REF(LLV(CLOSE,480),1)*VAR1; VAR6:=REF(HHV(CLOSE,480),1)*VAR1; VAR7:=100*(CLOSE-VAR5)/(VAR6-VAR5)*VAR1; VAR8:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100*VAR1; VAR9:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100*VAR1; VARA:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100*VAR1; VARB:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100*VAR1; VARC:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4*VAR1; VARD:=IF(VARC>23.16,VARC,0)*VAR1; VARE:=VARC<1*VAR1; VARF:=VARD*VAR1; VAR10:=VAR4<0 AND VAR7<0; VAR11:=1; VAR12:=(HIGH+LOW+CLOSE*2)/4*VAR11; VAR13:=EMA(VAR12,21); VAR14:=STD(VAR12,21); VAR15:=((VAR12-VAR13)/VAR14*100+200)/4*VAR11; VAR16:=(EMA(VAR15,89)-25)*1.56*VAR11; VAR17:=EMA(VAR16,5)*1.22*VAR11; VAR18:=EMA(VAR17,3)*VAR11; VAR19:=3*VAR17-2*VAR18*VAR11; VAR1A:=IF(CROSS(VAR19,VAR17) AND CROSS(VAR19,VAR18) AND CROSS(VAR17,VAR18),1,0); VAR1B:=IF(CROSS(VAR17,VAR19) AND CROSS(VAR18,VAR19) AND CROSS(VAR18,VAR17),1,0); 買點(diǎn): IF(FILTER(VAR8=0 AND VARE AND VAR10 AND VAR1A,5)=1,10,0); 賣點(diǎn): IF(FILTER(VAR8=100 AND VARF AND VAR1B,5)=1,10,0); VAR1C:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4*VAR1; VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89)*VAR1; VAR1E:=EMA(VAR1D,30)*VAR1; VAR1F:=2*(VAR1D-VAR1E)*10*VAR1; VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2)*VAR1; VAR21:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE)); VAR22:=EMA(VAR21*0.97,3)*VAR1; VAR23:=(HIGH+LOW+CLOSE)/3*VAR1; VAR24:=(VAR23-MA(VAR23,14))/(0.015*AVEDEV(VAR23,14))*VAR1; VAR25:=IF(YEAR<2009 AND VAR1F>0.015,VAR20,0)/45*VAR1; 拉升資金: VAR25,COLORRED; VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150); VAR27:=EMA(VAR26,100); VAR28:=2*(VAR26-VAR27); VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1); VAR2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE)); VAR2B:=EMA(VAR2A*0.97,3); VAR2C:=(HIGH+LOW+CLOSE)/3; VAR2D:=(VAR2C-MA(VAR2C,14))/(0.015*AVEDEV(VAR2C,14)); 主力資金: IF(YEAR<2009 AND VAR28>0.1,VAR29,0)*5; (0021){選股公式} {籌碼集中} A1:=COST(85); A2:=COST(15); A3:=A1-A2; A4:=(A1+A2)/2; 單峰密集:A3/A4*100<15,linethick0; B1:=HHV(HIGH,250); B2:=LLV(LOW,250); B3:=B1-B2; 低位:A4<(B3*0.4+B2),linethick0; 低位單峰密集:單峰密集 AND 低位,colorred; 高位:A4>(B3*0.7+B2),linethick0; 高位單峰密集:單峰密集 AND 高位,colorgreen; (042){三位一體選股公式} STICKLINE(OPEN>=CLOSE,VOL,0,9,0),colorAAAAAA; STICKLINE(OPEN>=CLOSE,VOL,0,6,0),colorBBBBBB; STICKLINE(OPEN>=CLOSE,VOL,0,2.4,0),colorCCCCCC; STICKLINE(OPEN>=CLOSE,VOL,0,1.1,0),colorDDDDDD; STICKLINE(CLOSE>OPEN,VOL,0,9,0),color6666CC; STICKLINE(CLOSE>OPEN,VOL,0,6,0),color7777DD; STICKLINE(CLOSE>OPEN,VOL,0,2.4,0),color8888EE; STICKLINE(CLOSE>OPEN,VOL,0,1.1,0),color9999FF; STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0),color1199FF; STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5,0),color1199FF; STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5,0),colorCCCCCC; STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5,0),colorCCCCCC; VAR1:=DYNAINFO(17)*REF(MA(VOL,5),1); VAR2:STICKLINE(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR1,0,4,1); VARC:=(SMA(ABS(LOW-REF(LOW,1)),3,1))/(SMA(MAX(LOW-REF(LOW,1),0),3,1)); RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K1:=SMA(RSV1,3,1); D1:=SMA(K1,3,1); J1:=3*K1-2*D1; RSV:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100; K:=SMA(RSV,6,1); D:=SMA(K,3,1); J:=3*K-2*D; LC:=REF(CLOSE,1); XA:=(IF(CROSS(J1,J) AND J<20,-1,0))+(IF(CROSS(J,J1) AND J>80,1,0)); TYP:=(HIGH+LOW+CLOSE)/3; CCJ:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14))/2; RSI1:=(SMA(MAX(CLOSE-LC,0),6,1))/(SMA(ABS(CLOSE-LC),6,1))*100; VAR222:=LLV(LOW,36); VAR333:=HHV(HIGH,36); K2:=EMA((CLOSE-VAR222)/(VAR333-VAR222)*100,9); XB:=(IF(CCJ>100 AND K2>50 AND CLOSE>OPEN,0.5,0))+(IF(RSI1>80 AND K2>50 AND CLOSE>OPEN,0.5,0)); RSV3:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100; K13:=SMA(RSV3,21,1); D13:=SMA(K1,3,1); J13:=3*K13-2*D13; XC:=IF(J13>80 AND RSI1>85,0.5,0); 金指:(EMA(IF(LOW<=LLV(LOW,30),VARC,0),3))*150,LINETHICK2,colorFF0000; IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR1,VAR2),colorFF0000; 警戒線:(IF(XA+XB+XC>0,61.8,0))*150; DRAWTEXT(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VOL,'動(dòng)態(tài)行情VOL'); (0022){機(jī)構(gòu)建倉選股公式} VAR2:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; VAR3:=SMA(VAR2,4,1); VAR4:=SMA(VAR3,2,1); VAR5:=VOL/CAPITAL*100; VAR6:=REF(VAR5,1); 機(jī)構(gòu)建倉:VAR4<14.5 AND VAR3<11; 大戶減倉:VAR6>30 AND VAR6<47; 機(jī)構(gòu)減倉:VAR4>82 AND VAR3>89; 股價(jià)臨界:VAR4>85 AND VAR3>95; (0023){選股公式} M:=13; P:=25; S:=15; A:=100*V/CAPITAL; EE:=SUMBARS(A,2); FF:=SUMBARS(A,98); V1:=HHV(C,EE)/HHV(HHV(C,EE),M)*100; V2:=HHV(C,FF)/HHV(HHV(C,FF),M)*100; K1:=SMA(V1,2,1); K2:=SMA(V2,2,1); K3:=COUNT(ABS(C/REF(C,1)-1)*100>=6,30)>=P; K4:=V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3); XG:(K1-K2); BB:(XG<(0-S) AND (K4 OR K3))*10{,DOTLINE}; AA:0-S{,DOTLINE}; STICKLINE(XG<(0-S),AA,XG,6,0),COLORRED; (0024){選股公式} a:=EMA(C,20); aa:=(a-REF(a,1))/REF(a,1)*100; b:=SUM(VOL,10)/CAPITAL*100; aa>=1.9 and aa<2 and b<10 or aa>=1.9 and aa<2 and b<40 and b>30 or aa>=1.9 and aa<2 and b<30 and b>20 or aa>=1.9 and aa<2 and b<60 and b>50 or aa>=1.8 and aa<1.9 and b<30 and b>20 or aa>=1.8 and aa<1.9 and b<60 and b>50 or aa>=1.8 and aa<1.9 and b<90 and b>80 or aa>=1.8 and aa<1.9 and b<100 and b>90; (0025){選股公式} REF(O>C,2) AND REF(C,3)*0.95>=REF(C,2) AND REF(C>O,1) AND REF(C,1)>=REF((O+C)/2,2) AND C>O AND C>REF(C,1) AND C>REF(O,2) AND C>MA(C,5) AND C>MA(C,10) AND C>MA(C,20) AND C>MA(C,60) AND REF(O/C>=1.03,2); (0026){選股公式} Var1:=1; Var2:=1/WINNER(CLOSE); Var3:=MA(CLOSE,13); Var4:=100-ABS((CLOSE-Var3)/Var3*100); Var5:=LLV(LOW,75); Var6:=HHV(HIGH,75); Var7:=(Var6-Var5)/100; Var8:=SMA((CLOSE-Var5)/Var7,20,1); Var9:=SMA((OPEN-Var5)/Var7,20,1); VarA:=3*Var8-2*SMA(Var8,15,1); 主力:= (100-VarA)*Var1; 散戶:= MA(WINNER(CLOSE*0.95)*100,3)*Var1; 新莊:= (100-IF(Var2>5,IF(Var2<100,Var2,Var4-10),0))*Var1; aa:=主力>ref(主力,1) and 散戶<0.3 and 新莊<ref(新莊,1) and 主力>100; Var21:=LLV(LOW,36); Var22:=HHV(HIGH,20); 游資:=EMA((CLOSE-Var21)/(Var22-Var21)*4,4)*25; aaa:=cross(游資,ref(游資,1)); 籌碼:=WINNER(C)*100; 選:(ref(aa,1) or ref(aa,2) or aa) and aaa and 籌碼<10; (0027){選股公式} ref(c,3)>ref(o,3) and ref(c,2)>ref(o,2) and ref(c,1)>ref(o,1) and ref(c,3)/ref(c,3+1)<=1.04 and ref(c,2)/ref(c,3)<=1.04 and ref(c,1)/ref(c,2)<=1.04 and c<o and ref(c,1)*0.95>=c and ref(c,2)>ref(c,3) and ref(c,1)>ref(c,2) and ma(c,5)>ma(c,10) and ma(c,10)>ref(ma(c,10),1) and ma(c,5)>ma(c,20) and ma(c,20)>ref(ma(c,20),1); (0028){選股公式} k:="kdj.k"(9,3,3); d:="kdj.d"(9,3,3); v1:=cross(k,d) and d<16;{KD指標(biāo)產(chǎn)生黃金交叉,K線上穿D線;D值要小于16} bias24:=(c-ema(c,24))/ema(c,24)*100<-6;{BIAS指標(biāo)設(shè)置為24日,要小于-6} xg1:if(v1 and bias24,1,0); (0029){選股公式} 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; K:=15; FFILTER:=(K/100)*STD(PR-REF(PR,1),10); XA:=IF(PR<REF(PR,1),PR,0); XN:=BARSLAST(XA>0 ); AMALOW:=REF(PR,XN); YA:=IF(PR>REF(PR,1),PR,0); YN:=BARSLAST(YA>0) ; AMAHIGH :=REF(PR,YN); RR:=IF( AMAHIGH-PR>FFILTER,-1,0) ; TT:=IF( PR- AMALOW>FFILTER,1,RR) ; (0030){買在底部選股公式} AA:=REF(CLOSE,1); BBB:=SMA(MAX(CLOSE-AA,0),21,1)/SMA(ABS(CLOSE-AA),21,1)*1000; HHH:=BBB-LLV(BBB,27); CCC:=LLV(BBB,27)-BBB; QQ:(MA(HHH,2)*3+HHH*13)/16,COLORFF00FF,LINETHICK1; SS:(MA(CCC,2)*3+CCC*13)/16,COLORFF00FF,LINETHICK1; GG:MA(HHH,5),LINETHICK1,COLORGREEN; MM:MA(CCC,5),LINETHICK1,COLORGREEN; WW:IF(QQ<GG ,SS,MM),LINETHICK1, COLOR00FFFF; EE:IF(SS<MM ,GG,QQ),COLORFFFFCC,LINETHICK1; S:0,COLOR00FFFF; 買:if(EE-WW<5.6,200,0),COLORRED; (0031){抄底選股公式} LOWV:=LLV(LOW,9); HIGHV:=HHV(HIGH,9); RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3); K:=EMA(RSV,3); D:=MA(K,3); bb:=REF((CLOSE<OPEN),1)AND CLOSE>OPEN; cc:=(c/ref(c,18)-1)*100<-35; cq:=SPLITBARS(0 )<15; xg:IF((k>REF(k,1)AND REF(k,1)<REF(REF(k,1),1))AND k<20 AND bb AND ref(Cc,1)=1 and cq=0 ,20,0),colorred; (0032){散戶黃金選股公式} a:=100*v/capital; ee:=sumbars(a,2); ff:=sumbars(a,98); v1:=HHV(c,ee)/hhv(HHV(c,ee),13)*100; v2:=HHV(c,ff)/hhv(HHV(c,ff),13)*100; k1:=sma(v1,2,1); k2:=sma(v2,2,1); K3:=count(abs(c/ref(c,1)-1)*100>=6,30)>=25; K4:=V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3); xg:=(k1-k2); bb:xg<(0-15) and (K4 OR K3); (0033){選股公式} Var2:=CLOSE*VOL; Var3:=EMA((MA(Var2,3)/MA(VOL,3)+MA(Var2,5)/MA(VOL,5)+MA(Var2,13)/MA(VOL,13)+MA(Var2,21)/MA(VOL,21))/4,1); Var4:=1*Var3; Var5:=Var3*0.92; Var6:=EMA(CLOSE,34); Var7:=MA(Var6*1.12,5); Var8:=MA(Var6*0.82,5); Var9:=CLOSE<VAR8; VarA:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,125)/MA(VOL,125)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100)<(-0.4); VarA AND CLOSE<VAR8; (0034){選股公式} B1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE < REF(CLOSE,1),0-VOL,0)),0); B2:=SUMBARS(VOL,CAPITAL); B3:=IF(CLOSE>LLV(CLOSE,B2),1,-1)*IF(B1>LLV(B1,B2),1,-1); B4:=IF(B3=-1,1,0); B5:=COUNT(B4=1,8)>3; B6:=SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100; B7:=DMA((HIGH+LOW+CLOSE)/3,VOL/B6); B8:=(CLOSE-B7)/B7*100<-17; B9:=(CLOSE-MIN(REF(CLOSE,5)*0.830,REF(CLOSE,21)*0.720))/CLOSE<0.05; 股道:B8 AND B9 AND B5 ; (0035){選股公式} HSV:=IF(SUM(VOL/CAPITAL,20)<1,SUM(VOL/CAPITAL,20),0.998); VAR1:=DMA(EMA(CLOSE,13),HSV); QS:=(CLOSE-VAR1)/VAR1*100; 價(jià)量線:=sMA(QS,3,1); 價(jià)量線>REF(價(jià)量線,1) and CROSS(QS,價(jià)量線); (0036){選股公式} {布林上下乖離太大可能反彈} BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; UPR:=BBI+3*STD(BBI,10); DWN:=BBI-3*STD(BBI,10); var55:=(UPR-DWN)/UPR<0.03; var56:=(UPR-DWN)/UPR>0.18; var57:=(MA(CLOSE,60)-MA(CLOSE,5))/MA(CLOSE,60)>0.15; 可能反彈:var57 and var56 and CLOSE>OPEN; (0037){大底選股公式} VAR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3; XG:(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5)),COLORYELLOW; (0038){95%成功率選股公式} VAR1G:=(((CLOSE / MA(CLOSE,40)) * 100) < 78); VAR2G:=(((CLOSE / MA(CLOSE,60)) * 100) < 74); VAR3G:=(HIGH > (LOW * 1.051)); VAR4G:=(VAR3G AND (COUNT(VAR3G,5) > 1)); AA:=IF((VAR4G AND (VAR1G OR VAR2G)),2,0); BB:=c/ref(c,25)<=1.1; CC:=(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15; V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100; 操盤線:=SMA(V3,2,1); V5:=SMA(操盤線,2,1); 抄底:=IF(操盤線>REF(操盤線,1) AND REF(操盤線,1)<REF(操盤線,2) AND 操盤線<23 ,1.5,0); 買就贏利:=BB and AA and CC and 抄底; E9:=(C/MA(C,48))<0.75; E10:=(C/MA(C,70))<0.70; E11:=E9 AND E10; E12:=V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3); E13:=E11 AND ((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND E12; xg:=Filter(E13,3); Var1:=DMA(CLOSE,VOL/SUM(VOL,34)); Var2:=DMA(CLOSE,VOL/SUM(VOL,13)); Var3:=(CLOSE-Var1)/Var1*100; Var4:=(CLOSE-Var2)/Var2*100; XG2:=Var4<=-28 AND Var3<=-19; (買就贏利 OR XG2 ) AND XG; (注:如果在熊市選出股后,待6--8天再回前低點(diǎn)買) (0039){選股公式} A:=EMA(MA(CLOSE,2),1); B:=EMA(MA(CLOSE,3),2); Z:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)); XG:=Z>75 AND CROSS(A,B); ENTERLONG:XG; (0040){選股公式} {金蛤蟆選股} RSV:=(((CLOSE - LLV(LOW,6)) / (HHV(HIGH,6) - LLV(LOW,6))) * 100); K:=(POW(SMA(RSV,2,1),5) / POW(10,8)); D:=(POW(SMA(RSV,2,1),5) / POW(10,10)); 蛤:=((K+ D) / 2); 蟆:=(0 - 蛤); J:=1; 選股:CROSS(蛤,J); (0041){快槍選股公式} VAR1:=EMA(HHV(HIGH,500),21); VAR2:=EMA(HHV(HIGH,250),21); VAR3:=EMA(HHV(HIGH,90),21); VAR4:=EMA(LLV(LOW,500),21); VAR5:=EMA(LLV(LOW,250),21); VAR6:=EMA(LLV(LOW,90),21); VAR7:=EMA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,21); VAR8:=EMA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55+VAR3*0.65)/6,21); VAR9:=EMA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.68)/6,21); VARA:=EMA((VAR7*3+VAR8*2+VAR9)/6*1.738,21); VARB:=REF(LOW,1); VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100; VARD:=EMA(IF(CLOSE*1.35<=VARA,VARC*10,VARC/10),3); VARE:=LLV(LOW,30); VARF:=HHV(VARD,30); VAR10:=IF(MA(CLOSE,58),1,0); 快槍:EMA(IF(LOW<=VARE,(VARD+VARF*2)/2,0),3)/618*VAR10,COLORSTICK; AA:=REF(快槍,2); BB:=REF(快槍,1); CC:=快槍; T1:=CC<BB AND BB<AA; (0042){追漲信號(hào)選股公式} 短趨勢:((3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-50)*1.032+50),COLORRED; Var2:=(2*CLOSE+HIGH+LOW+OPEN)/5; Var3:=LLV(LOW,34); Var4:=HHV(HIGH,34); 長趨勢:EMA((Var2-Var3)/(Var4-Var3)*100,13),color00ff00; 判斷底:SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*5; Var5:=CROSS(短趨勢,長趨勢)AND 長趨勢<25; 全倉買入:STICKLINE(短趨勢<10 AND 判斷底>0,0,30,6,1),COLORffee44; STICKLINE(Var5,0,50,8,0) , COLORffff30; DRAWICON(Var5 AND 判斷底>0,60,1); DRAWTEXT(COUNT(短趨勢<10 AND 判斷底>0,8) AND Var5,50,'砸鍋賣鐵買'); DRAWTEXT(CROSS(短趨勢,長趨勢)AND 長趨勢>25 AND 長趨勢>REF(長趨勢,1),長趨勢,''); Var6:=CROSS(短趨勢,長趨勢)AND 長趨勢<50; DRAWTEXT( COUNT(短趨勢<30 AND 判斷底>0,5) AND Var6,30,'短線買'); DRAWTEXT(CROSS(短趨勢,長趨勢)AND 長趨勢>25 AND 長趨勢>REF(長趨勢,1),長趨勢,'追漲'); (0043){選股公式} AA1:=(AMOUNT)/(VOL); BB1:=(LOW<(AA1)*(0.9)); CC1:=(((CLOSE-REF(CLOSE,1))/(REF(CLOSE,1)))*(100)>1.2); DD1:=(LOW<(MA(CLOSE,5))*(0.921)); EE1:=(VOL<(MA(VOL,5))*(1.5)); FF1:=BB1 AND CC1 AND DD1 AND EE1; FILTER(FF1,3) AND (DATE<=1080530); 二十天最低跌幅:=(HHV(CLOSE,20))/(LLV(CLOSE,20)); RSV:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*(100); K:=SMA(RSV,3,1); (0044){散戶黃金 選股公式} a:=100*v/capital; ee:=sumbars(a,2); ff:=sumbars(a,98); v1:=HHV(c,ee)/hhv(HHV(c,ee),13)*100; v2:=HHV(c,ff)/hhv(HHV(c,ff),13)*100; k1:=sma(v1,2,1); k2:=sma(v2,2,1); K3:=count(abs(c/ref(c,1)-1)*100>=6,30)>=25; K4:=V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3); xg:=(k1-k2); bb:xg<(0-15) and (K4 OR K3); (0045){選股公式} DYNAINFO(22)>=2*DYNAINFO(23) and c>=ref(c,1) and c>o; (0046){股價(jià)陽線上穿5\10均線的選股公式} ref(c,1)<ref(ma(c,5),1) and ref(c,1)<ref(ma(c,10),1) and c>ma(c,5) and c>ma(c,10); (0047){股價(jià)在5\10\日均線之上的選股公式} c>ma(c,5) and c>ma(c,10); (0048){準(zhǔn)確買入選股公式}
|
|