資源描述:
《我的股票池選股公式源碼.doc》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。
1、股票池選股公式:??(001)K線昨天收盤是陰線今天是陽線選股公式:XG:C>OANDREF(C,1)[ma(c,10);(003)成交均價線:MAN:MA(AMOUNT/V/100,N);(004)今日收盤價站在30日和5日均線上方,且5日均線掉頭向上;且成交量比前一日放大一倍以上;且今日收盤是超過8%的陽線。C>MAX(MA(C,5),MA(C,30))ANDCROSS(MA(C,5),REF(MA(C,5),1))ANDV>REF(V,1)*2ANDC/REF(C]
2、,1)>1.08;(005)5日線連續(xù)3日走平或向上:count(ma(c,5)>=ref(ma(c,5),1),3);(006)MACD指標(biāo)源碼:LONG,26??SHORT,12??M,9DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:EMA(DIFF,M);MACD:2*(DIFF-DEA),COLORSTICK;選出MACD的DIFF、DEA在0軸下,DIFF從下往上交叉DEA的個股:DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:EMA(DIF
3、F,M);MACD:2*(DIFF-DEA);DIFF<0ANDDEA<0ANDCROSS(DIFF,DEA);(007)選出外盤小于內(nèi)盤而股價收陽的個股:DYNAINFO(7)>DYNAINFO(3)ANDDYNAINFO(22)>DYNAINFO(23);(008)一陽穿兩線:xg:cross(c,ma(c,5))andcross(c,ma(c,30));(009)連續(xù)3-5天,每天的收盤價漲跌幅不超過1%.????????????w1:abs(c-o)<0.01;xg:count(w1,5)>=3;(010)K線收十字
4、星的股票:abs(c-o)/o<0.01;(011)MACD在8天以內(nèi)兩次金叉:DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26));DEA:=EMA(DIFF,9),COLORBLUE,LINETHICK0;MACD:=2*(DIFF-DEA);w1:cross(DIFF,dea);xg:count(w1,8)>=2;(012)MACD上金叉選股公式:日線MACD在0線上方出現(xiàn)金叉,且近10日內(nèi)漲幅不超過百分之10:DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26));DEA:=EMA(
5、DIFF,9),COLORBLUE,LINETHICK0;MACD:=2*(DIFF-DEA);w1:=cross(DIFF,dea);w2:=(c-ref(c,10))/ref(c,10)<0.1;w3:macd>0;w1andw2andw3;(013)一陽穿三線:cross(c,ma(c,5))andcross(c,ma(c,10))andcross(c,ma(c,20));(014)13日量均線拐頭向上:ma(v,13)>ref(ma(v,13),1);(015)60MA由向下調(diào)頭向上:ma(c,60)>ref(ma(
6、c,60),1);(016)個股價回調(diào)到14日均線的選股公式:abs(c-ma(c,14))/ma(c,14)<0.005;(017)跳空高開上漲或跳空下跌發(fā)出信號:HIGH[REF(HIGH,1);(018)跳空高開收陽線:LOW>REF(HIGH,1)andc>o;(019)漲停過300日線的選股公式:c/ref(c,1)>1.09andcross(c,ma(c,300));(020)今天的開盤價比昨天的收盤價高,并收陽線:c>oandc>ref(c,1);(021)MA20穿MA30;M]
7、A20穿MA60;MA20穿120:cross(ma(c,20),ma(c,30))orcross(ma(c,20),ma(c,60))orcross(ma(c,20),ma(c,120));(022)股價N天內(nèi)連續(xù)沿著5天線走,且每天收盤價與5天線的距離不超過2%的選股公式:w1:=abs(c-ma(c,5))/ma(c,5)<0.02;xg:count(w1,n)=n;(023)跳空高開后三天內(nèi)沒有回補(bǔ)缺口的公式:ref(LOW,2)>REF(HIGH,3)andl>ref(LOW,2);(024)N日內(nèi),向上跳空缺口未
8、補(bǔ)的選股。N設(shè)為可調(diào)節(jié)參數(shù)ref(LOW,n)>REF(HIGH,n-1)andl>ref(LOW,n);(025)當(dāng)曰放量漲停突破125曰均線和250日均線(125均線與250均線粘合)cross(c,ma(c,125))andcross(c,ma(c,250))andv>ref(v,1