編程思路破譯 最準(zhǔn)的賦值:(當(dāng)前流通股本(手)/100)/10000 股票賦值:如果模糊匹配品種名稱,返回0,否則返回1 AND 如果模糊匹配品種名稱,返回0,否則返回1 AND 如果模糊匹配品種名稱,返回0,否則返回1 指標(biāo)公式網(wǎng)賦值:成交量(手)/當(dāng)前流通股本(手)*100 GSDSDSD1賦值:收盤價(jià)的10日簡(jiǎn)單移動(dòng)平均 GSDSDSD2賦值:收盤價(jià)的54日簡(jiǎn)單移動(dòng)平均 HRFDS8賦值:(3日前的收盤價(jià)-收盤價(jià))/3日前的收盤價(jià)*100>3 HRFDS9賦值:HRFDS8的10日過濾 HRFDS10賦值:上次HRFDS9距今天數(shù) HRFDS11賦值:HRFDS10+2日前的最高價(jià) HRFDS12賦值:HRFDS10+1日前的最高價(jià) HRFDS13賦值:HRFDS10日前的最高價(jià) HRFDS14賦值:HRFDS11和HRFDS12的較大值 HRFDS15賦值:HRFDS14和HRFDS13的較大值 HRFDS16賦值:(收盤價(jià)-1日前的收盤價(jià))/1日前的收盤價(jià)*100>3 HRFDS17賦值:HRFDS10<150 HRFDS18賦值:(開盤價(jià)-HRFDS15)/HRFDS15*100<30 HRFDS19賦值:(收盤價(jià)-HRFDS10日內(nèi)最低價(jià)的最低值)/HRFDS10日內(nèi)最低價(jià)的最低值*100<50 HRFDS20賦值:(收盤價(jià)-5日前的開盤價(jià))/5日前的開盤價(jià)*100<30 HRFDS21賦值:成交量(手)/成交量(手)的5日簡(jiǎn)單移動(dòng)平均<3.5 HRFDS22賦值:(收盤價(jià)-89日前的收盤價(jià))/89日前的收盤價(jià)*100<80 HRFDS25賦值:HRFDS16 AND HRFDS17 AND HRFDS18 AND HRFDS19 AND HRFDS20 AND HRFDS21 AND HRFDS22 CSSDD1賦值:HRFDS25的15日過濾 CSSDD2賦值:(((收盤價(jià)-GSDSDSD2)/GSDSDSD2)<0.1) CSSDD3賦值:(((收盤價(jià)-GSDSDSD1)/GSDSDSD1)<0.3) CSSDD4賦值:(((CSSDD2=1) AND (CSSDD3=1))*0.2) CSSDD5賦值:((((CSSDD4=0) AND (1日前的CSSDD4=0.2)) AND (1日前的(統(tǒng)計(jì)10日中滿足(CSSDD4=0.2)的天數(shù)=10)=1))*-0.1) CSSDD6賦值:CSSDD5=-0.1 XDF賦值:(CSSDD1 OR CSSDD6) CSSDD7賦值:以成交量(手)/當(dāng)前流通股本(手)為權(quán)重成交額(元)/成交量(手)/100的動(dòng)態(tài)移動(dòng)平均 CSSDD7A賦值:現(xiàn)價(jià)/(1日前的收盤價(jià))>1.03 AND (現(xiàn)價(jià)/開盤價(jià)>1.03) CSSDD8賦值:(成交量(手)/1日前的成交量(手)>1.2 AND 統(tǒng)計(jì)1日中滿足收陽線的天數(shù)) OR (最低價(jià)>1日前的最高價(jià) AND 統(tǒng)計(jì)1日中滿足收陰線的天數(shù) AND 成交量(手)/1日前的成交量(手)>1.2) 輸出CSSDD9:XDF AND 收盤價(jià)/1日前的收盤價(jià)>1.025 AND CSSDD8 AND CSSDD7A AND 如果模糊匹配品種名稱,返回0,否則返回1 AND 當(dāng)前流通股本(手)/1000000<10 AND 現(xiàn)價(jià)<50 AND 股票 AND 收盤價(jià)<66 AND 流通市值/100000000<36 程序源碼 最準(zhǔn)的:=(CAPITAL/100)/10000; 股票:=IF(NAMELIKE('ST'),0,1) AND IF(NAMELIKE('*ST'),0,1) AND IF(NAMELIKE('S'),0,1); 指標(biāo)公式網(wǎng):=VOL/CAPITAL*100; gsdsdsd1:=MA(CLOSE,10); gsdsdsd2:=MA(CLOSE,54); hrfds8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>3; hrfds9:=FILTER(hrfds8,10); hrfds10:=BARSLAST(hrfds9); hrfds11:=REF(HIGH,hrfds10+2); hrfds12:=REF(HIGH,hrfds10+1); hrfds13:=REF(HIGH,hrfds10); hrfds14:=MAX(hrfds11,hrfds12); hrfds15:=MAX(hrfds14,hrfds13); hrfds16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>3; hrfds17:=hrfds10<150; hrfds18:=(OPEN-hrfds15)/hrfds15*100<30; hrfds19:=(CLOSE-LLV(LOW,hrfds10))/LLV(LOW,hrfds10)*100<50; hrfds20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30; hrfds21:=VOL/MA(VOL,5)<3.5; hrfds22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80; hrfds25:=hrfds16 AND hrfds17 AND hrfds18 AND hrfds19 AND hrfds20 AND hrfds21 AND hrfds22; cssdd1:=FILTER(hrfds25,15); cssdd2:=(((CLOSE-gsdsdsd2)/gsdsdsd2)<0.1); cssdd3:=(((CLOSE-gsdsdsd1)/gsdsdsd1)<0.3); cssdd4:=(((cssdd2=1) AND (cssdd3=1))*0.2); cssdd5:=((((cssdd4=0) AND (REF(cssdd4,1)=0.2)) AND (REF((COUNT((cssdd4=0.2),10)=10),1)=1))*-0.1); cssdd6:=cssdd5=-0.1; XDF:=(cssdd1 OR cssdd6); cssdd7:=DMA(AMOUNT/VOL/100,VOL/CAPITAL); cssdd7A:=DYNAINFO(7)/(REF(CLOSE,1))>1.03 AND (DYNAINFO(7)/O>1.03); cssdd8:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2); cssdd9:XDF AND C/REF(C,1)>1.025 AND cssdd8 AND cssdd7A AND IF(NAMELIKE('ST'),0,1) AND CAPITAL/1000000<10 AND DYNAINFO(7)<50 AND 股票 AND C<66 AND FINANCE(40)/100000000<36 ; 注: 館內(nèi)各種公式為學(xué)習(xí)編程而保存,實(shí)戰(zhàn)使用前一定要看其成功率回測(cè)數(shù)據(jù)和風(fēng)險(xiǎn)提示或者自己親自測(cè)試近期成功率,決不能依據(jù)公式名稱的描述和形容去投資,據(jù)此入市造成投資損失由投資者自己承擔(dān)。 |
|