選股公式集1
強弱度指標個股漲幅:(C-REF(C,1))/REF(C,1)*100;大盤漲幅:(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*100;強弱度:個股漲幅-大盤漲幅;預警:強弱度>=2 AND 強弱度<=4;-----------------------------品種強弱選股公式{輸入參數N(14,0,1000);}LC:=REF(CLOSE,1);品種0:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100;IC:=REF(INDEXC,1);指數0:=SMA(MAX(INDEXC-IC,0),N,1)/SMA(ABS(INDEXC-IC),N,1)*100;{FILLRGN(品種0>=指數0,指數0,品種0),COLORRED;FILLRGN(品種0<指數0,指數0,品種0),COLORGREEN;}STICKLINE(品種0>=指數0,指數0,品種0,1,0),COLORRED;STICKLINE(品種0<指數0,指數0,品種0,1,0),COLORGREEN;品種強弱:品種0,COLORGREEN;指數強弱:指數0,COLORMAGENTA;強弱度:品種強弱-指數強弱,LINETHICK0;MA(品種強弱,8),COLORYELLOW;20,COLORMAGENTA;50,COLORYELLOW,LINETHICK2;80,COLORGREEN;午盤選股!下午漲停!無敵選股公式
BETWEEN(ABS((C-DYNAINFO(11))/C),0,0.02) AND BETWEEN(ABS((C-DYNAINFO(4))/C),0,0.02) AND HIGH<=DYNAINFO(4)*1.02 ANDLOW>=DYNAINFO(4)*0.98 ANDDYNAINFO(4)>=DYNAINFO(3); 「寂寞先生底部選股」的思路描述要判斷一個股票的底部,我們必須結合指標來判斷,最簡單的方法有以下幾個方面:(1)KDJ指標的J值在0以下,即負數;(2)CCI指標的數值在一200附近;(3)股價在BOLL下軌或者以下;(4)股價遠離5日平均線至少10%以上。只有滿足了上面4個條件,一般情況下股價就面臨底部
選股公式
TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;BOLL:=MA(CLOSE,20);UPPER:=BOLL+2*STD(CLOSE,20);LOWER:=BOLL-2*STD(CLOSE,20);MA1:=MA(CLOSE,5);陽線買:CCI<-200 AND J<0 AND CLOSE<LOWER AND CLOSE<MA1/1.1;
---------------------------------------------10個指標超短源碼
1.泡沫率BML1:CLOSE/FINANCE(33)*capital/100000000,COLORYELLOW
2. 活躍度H1:MA((HIGH-LOW)/REF(CLOSE,1)*(VOL/CAPITAL)*1000,N1),COLORYELLOW;H2:MA((HIGH-LOW)/REF(CLOSE,1)*(VOL/CAPITAL)*1000,N2),COLORWHITE;H3:MA((HIGH-LOW)/REF(CLOSE,1)*(VOL/CAPITAL)*1000,N3),COLOR00aa00;H4:MA((HIGH-LOW)/REF(CLOSE,1)*(VOL/CAPITAL)*1000,N4),COLORFF00FF;H5:MA((HIGH-LOW)/REF(CLOSE,1)*(VOL/CAPITAL)*1000,N5),COLOR00FF00(n1-n5,5,10,20,30,60)
3. 陰陽線Z1:SUM(IF(CLOSE>REF(CLOSE,1),(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)/(VOL/CAPITAL)*100,0),N),COLORFF00FF;D2:SUM(IF(CLOSE<REF(CLOSE,1),(REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)/(VOL/CAPITAL)*100,0),N),COLOR00FF00(n1,20)
4. 強弱度Q1:MA((IF(CLOSE>=((HIGH-LOW)/2),(CLOSE-LOW)/(HIGH-LOW)*(VOL/CAPITAL),(1-(HIGH-CLOSE)/(HIGH-LOW))*(VOL/CAPITAL))),N1)*100,COLORFF00FF;R1:MA((IF(CLOSE>=((HIGH-LOW)/2),(1-(CLOSE-LOW)/(HIGH-LOW))*(VOL/CAPITAL),(HIGH-CLOSE)/(HIGH-LOW)*(VOL/CAPITAL))),N1)*100,COLOR00FF00(n1,20)
5. 選股指標GJ1:CLOSE/10,COLORWHITE;HSL2:VOL/CAPITAL*100,COLORYELLOW;LTP3:CAPITAL/100000,COLOR00FF00
6. 漲跌力度ZHANG:MA(IF((CLOSE>=OPEN),(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)/(VOL/CAPITAL),0),N)*10,COLORFF00FF;DIE:MA(IF((CLOSE<=OPEN),(REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)/(VOL/CAPITAL),0),N)*10,COLOR00FF00(n,5)
7. 量比指標a:=v/indexv*1000;lb:sma(a,n1,1);mlb:ma(lb,n2);(n1-n2,5,10)
8. 周期漲幅H1:(CLOSE-LLV(LOW,N1))/LLV(LOW,N1)*100,COLORYELLOW;H2:(CLOSE-LLV(LOW,N2))/LLV(LOW,N2)*100,COLORFF00FF;H3:(CLOSE-LLV(LOW,N3))/LLV(LOW,N3)*100,COLOR00FF00;H4:(CLOSE-LLV(LOW,N4))/LLV(LOW,N4)*100,COLORWHITE;(n1-n4,5,21,64,241)
9. 拉升指標H1:IF(HHV(HIGH,N2)>=HHV(HIGH,N3),(CLOSE-LLV(LOW,N1))/CLOSE*100-(REF(CLOSE,N1)-LLV(REF(LOW,N1),N1))/REF(CLOSE,N1)*100,0),COLOR00FF00;H2:IF(HHV(HIGH,N4)>=HHV(HIGH,N5),(CLOSE-LLV(LOW,N1))/CLOSE*100-(REF(CLOSE,N1)-LLV(REF(LOW,N1),N1))/REF(CLOSE,N1)*100,0),COLORFF00FF;H3:IF(HHV(HIGH,N6)>=HHV(HIGH,N7),(CLOSE-LLV(LOW,N1))/CLOSE*100-(REF(CLOSE,N1)-LLV(REF(LOW,N1),N1))/REF(CLOSE,N1)*100,0),COLORWHITE(n1-n7,10,3,30,10,60,30,120)
多方炮 Var1:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN; Var1;
DIF上穿零線 Var1:=EMA(CLOSE,12)-EMA(CLOSE,26); COUNT(Var1>=0,60)=1 AND Var1>=0;
DIF下穿零線 Var1:=EMA(CLOSE,12)-EMA(CLOSE,26); COUNT(Var1<=0,60)=1 AND Var1<=0;
放量過頭 Var1:=HHV(HIGH,60); Var2:=CLOSE>Var1; Var3:=VOL>MA(VOL,5)*2.5 OR COUNT(VOL>MA(VOL,10),6)>4; Var2 AND Var3;
黑馬草上飛 Var1:=(CLOSE-MA(CLOSE,60))/MA(CLOSE,60)*100; Var2:=COUNT(MA(CLOSE,60)>REF(MA(CLOSE,60),1),100)>95; Var3:=COUNT(Var1<20,100)>95; Var4:=COUNT(CLOSE>MA(CLOSE,60),100)>80; Var5:=CLOSE/REF(CLOSE,1)>1.04; Var6:=VOL/CAPITAL*100>2.8; Var7:=Var2 AND Var3 AND Var4 AND Var5 AND Var6; Var7 AND (REF(BARSLAST(Var7),1)>20 OR BARSSINCE(Var7)=0);
空方炮 REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN; D!LBCJ Var1:=MA(CLOSE,60); Var2:=COUNT(CLOSE<Var1,33)>31; Var3:=CROSS(CLOSE,Var1); Var4:=CLOSE/REF(CLOSE,1)>1.045; Var2 AND Var3 AND Var4;
老鴨頭 Var1:=MA(CLOSE,5); Var2:=MA(CLOSE,10); Var3:=MA(CLOSE,60); Var4:=BARSLAST(CROSS(Var1,Var3)); Var5:=BARSLAST(CROSS(Var2,Var3)); Var6:=BARSLAST(HIGH=HHV(HIGH,Var5)); Var7:=BARSLAST(CROSS(Var2,Var1)); Var8:=BARSLAST(CROSS(Var1,Var2)); Var9:=Var4>Var5 AND Var5>Var6 AND Var6>Var7 AND Var7>Var8 AND Var8<5; VarA:=COUNT(CROSS(Var2,Var1),Var5)=1; Var9 AND VarA;
量芝麻點 Var1:=MA(VOL,40); Var2:=VOL/CAPITAL*100; Var3:=COUNT(VOLar1<1.3,14)>11; Var4:=CROSS(Var2,2); Var5:=CLOSE/REF(CLOSE,1)>1.025 AND CLOSE>OPEN; Var6:=Var3 AND Var4 AND Var5; Var6;
青龍取水 Var1:=MIN(MA(CLOSE,5),MA(CLOSE,10))>MA(CLOSE,60) AND CROSS(MA(CLOSE,5),MA(CLOSE,10)); Var2:=MIN(MA(CLOSE,5),MA(CLOSE,10))/MA(CLOSE,60)<1.05; Var3:=COUNT(VOL<MA(VOL,10),10)>6; Var1 AND Var2 AND Var3;
三死叉見頂 Var1:=5; Var2:=HHV(HIGH,20)/HIGH<=1.15; Var3:=MA(CLOSE,5); Var4:=MA(CLOSE,10); Var5:=MA(VOL,5); Var6:=MA(VOL,10); Var7:=EMA(CLOSE,12)-EMA(CLOSE,26); Var8:=EMA(Var7,9); Var9:=BARSLAST(CROSS(Var4,Var3)); VarA:=BARSLAST(CROSS(Var6,Var5)); VarB:=BARSLAST(CROSS(Var8,Var7)); VarC:=IF(Var9<=Var1 AND VarA<=Var1 AND VarB<=Var1,1,0); VarC;
天上井地下井 Var1:=MA(CLOSE,5); Var2:=MA(CLOSE,10); Var3:=MA(CLOSE,20); Var4:=MA(CLOSE,30); Var5:=COUNT(CROSS(Var3,Var1),21)=1 AND COUNT(CROSS(Var4,Var1),21)>0 AND COUNT(CROSS (Var3,Var2),21)>0 AND COUNT(CROSS(Var4,Var2),21)>0; Var6:=MA(VOL,5); Var7:=MA(VOL,10); Var8:=MA(VOL,20); Var9:=MA(VOL,30); VarA:=COUNT(CROSS(Var8,Var6),21)=1 AND COUNT(CROSS(Var9,Var6),21)>0 AND COUNT(CROSS (Var8,Var7),21)>0 AND COUNT(CROSS(Var9,Var7),21)>0; VarB:=COUNT(Var5,13)>0 AND COUNT(VarA,13)>0; VarB AND (REF(BARSLAST(VarB),1)>20 OR BARSSINCE(VarB)=0);
量托 n1=5,n2=10,n3=20 Var1:=MA(VOL,N1); Var2:=MA(VOL,N2); Var3:=MA(VOL,N3); Var4:=COUNT(CROSS(Var1,Var2),21)=1 AND CROSS(Var2,Var3) AND COUNT(CROSS(Var1,Var3),21)=1 AND BARSLAST(CROSS(Var1,Var2))>BARSLAST(CROSS(Var1,Var3)) AND BARSLAST(CROSS(Var1,Var3))>BARSLAST (CROSS(Var2,Var3)) AND Var1>REF(Var1,1); Var4;
量壓 n1=5,n2=10,n3=20 Var1:=MA(VOL,N1); Var2:=MA(VOL,N2); Var3:=MA(VOL,N3); Var4:=COUNT(CROSS(Var2,Var1),21)=1 AND CROSS(Var3,Var2) AND COUNT(CROSS(Var3,Var1),21)=1 AND BARSLAST(CROSS(Var2,Var1))>BARSLAST(CROSS(Var3,Var1)) AND BARSLAST(CROSS(Var3,Var1))>BARSLAST (CROSS(Var3,Var2)) AND Var1<REF(Var1,1); Var4;
一陽上穿三角托 n1=20,n2=40,n3=60 Var1:=MA(CLOSE,N1); Var2:=MA(CLOSE,N2); Var3:=MA(CLOSE,N3); Var4:=COUNT(CROSS(Var1,Var2),21)=1 AND CROSS(Var2,Var3) AND COUNT(CROSS(Var1,Var3),21)=1 AND BARSLAST(CROSS(Var1,Var2))>BARSLAST(CROSS(Var1,Var3)) AND BARSLAST(CROSS(Var1,Var3))>BARSLAST (CROSS(Var2,Var3)) AND Var1>REF(Var1,1); Var5:=CLOSE>MAX(Var1,MAX(Var2,Var3)) AND OPEN<MIN(Var1,MIN(Var2,Var3)); Var6:=COUNT(Var5,21)=1; Var4 AND Var6;
短線是銀之價托 m1=20,m2=40,m3=60,NDAY=1 Var1:=MA(CLOSE,M1); Var2:=MA(CLOSE,M2); Var3:=MA(CLOSE,M3); Var4:=BARSLAST(CROSS(Var1,Var2)); Var5:=BARSLAST(CROSS(Var1,Var3)); Var6:=BARSLAST(CROSS(Var2,Var3)); Var7:=IF(Var4>Var5 AND Var5>Var6 AND Var6<=NDAY,1,0); Var8:=IF(Var1>Var2 AND Var2>Var3 AND CLOSE>Var1,1,0); Var7 AND Var8;
短線是銀之量托 m1=20,m2=40,m3=60,NDAY=1 Var1:=MA(VOL,M1); Var2:=MA(VOL,M2); Var3:=MA(VOL,M3); Var4:=BARSLAST(CROSS(Var1,Var2)); Var5:=BARSLAST(CROSS(Var1,Var3)); Var6:=BARSLAST(CROSS(Var2,Var3)); Var7:=IF(Var4>Var5 AND Var5>Var6 AND Var6<=NDAY,1,0); Var8:=IF(Var1>Var2 AND Var2>Var3 AND VOL>Var1,1,0); Var7 AND Var8;
短線是銀之絕對量頂天 n=125 IF(HHV(VOL,N)=VOL,1,0); 交叉 5日線上穿10日線且本次交叉距上次交叉50天以上 Var1:=MA(CLOSE,5); Var2:=MA(CLOSE,10); Var3:=BARSLAST(CROSS(Var1,Var2)); Var4:=REF(Var3,1); IF(Var4>=50 AND Var3=0,1,0);
條件選股公式——短線是銀之三金叉見底 nday := 5; down := closev(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)); vvday := barslast(cross(vma1,vma2)); macdday := barslast(cross(diff,dea)); sjcjd:= if((ppday<=nday and vvday<=nday and macdday<=nday),1,0);
順勢而為
均價:=(HIGH+4*LOW+OPEN+CLOSE)/7;均價差:=EMA(均價,13)-EMA(均價,34);移動均價:=EMA(均價差,5);差:=(均價差-移動均價)*5;A:=IF(差>=1000,1000,IF(差<=均價,均價,差));B:=FORCAST(FORCAST(A,31),10);上漲:IF(A>B,A,B),color0000FF;下跌:IF(A<B,A,B),color00FF00;分水嶺:B,LINETHICK2,color00FFFF;
絕對底部出擊Var1:=INDEXC; Var2:=MA(Var1,6); Var3:=MA(Var1,24); Var4:=MA(Var1,32); Var5:=MA(Var1,62); Var6:=MA(Var1,105); Var7:=Var5<REF(Var5,1) AND Var6<REF(Var6,1) AND Var5<Var6*0.98; Var8:=Var4>Var2*1.11 AND Var3>Var2*1.095; Var9:=Var2>Var1*0.95;飛狐會員專用:0; 百發百中:Var7 AND Var8 AND Var9 AND CLOSE/COST(8)<=0.8 AND (CLOSE>OPEN OR CLOSE<OPEN) AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)),coloryellow; Var1n:=MA(CLOSE,5),; Var2n:=MA(CLOSE,10); Var3n:=(Var1n-CLOSE)/CLOSE>3/100; Var4n:=(Var2n-Var1n)/Var1n>0.03; Var5n:=LLV(CLOSE,30)=LLV(CLOSE,120); 底部:Var3n AND Var4n AND Var5n,colorgreen; 絕對底部2:=COUNT(百發百中=1,5)=1 and 底部,linethick2,colorred;絕對底部:STICKLINE( FILTER(絕對底部2=1,5),0 ,1.5,5 , 0.8),colorred;絕對底部出擊:百發百中=1 and 底部=1 ,colorred;
推薦閱讀:
※張兵:把「複利」運用起來,你也許能超越90%的人
※1個公式判別相鄰兩個數字間差值的最小正值
※適合東方人的體重計算公式,你真超重了么?
※數學上有哪些醜陋的公式?
※解讀Excel高手寫公式使用的{}
TAG:公式 |