編程思路破譯 JH賦值:成交量(手)*收盤價(jià) HJ_10賦值:HJ_7和HJ_8的較大值 HJ_18賦值:(收盤價(jià)-1日前的收盤價(jià)*HJ_2)/1日前的收盤價(jià)*100>7 HJ_19賦值:HJ_17 AND HJ_18 HJ_20賦值:日期對(duì)應(yīng)的轉(zhuǎn)換天數(shù) HJ_21賦值:HJ_20>9344 AND HJ_20<999999999 HJ_22賦值:(HJ_11 AND HJ_19)*HJ_21 HJ_23賦值:收盤價(jià)的5日指數(shù)移動(dòng)平均 HJ_24賦值:收盤價(jià)的10日指數(shù)移動(dòng)平均 HJ_25賦值:收盤價(jià)的14日指數(shù)移動(dòng)平均 HJ_26賦值:收盤價(jià)的18日指數(shù)移動(dòng)平均 HJ_27賦值:收盤價(jià)的40日指數(shù)移動(dòng)平均 HJ_28賦值:收盤價(jià)的60日指數(shù)移動(dòng)平均 HJ_29賦值:HJ_23和HJ_4的較大值和HJ_25的較大值和HJ_26的較大值和HJ_27的較大值和HJ_28的較大值*HJ_9 HJ_30賦值:HJ_23和HJ_4的較小值和HJ_25的較小值和HJ_26的較小值和HJ_27的較小值和HJ_28的較小值*HJ_9 HJ_31賦值:收盤價(jià)>HJ_29 AND 最低價(jià)<HJ_30 AND (收盤價(jià)>1日前的3日內(nèi)最高價(jià)的最高值 AND (收盤價(jià)-1日前的收盤價(jià)*HJ_2)/1日前的收盤價(jià)>0.09) HJ_32賦值:HJ_31>0的歷史過濾=1 HJ_33賦值:日期對(duì)應(yīng)的轉(zhuǎn)換天數(shù) HJ_34賦值:HJ_33>9350 AND HJ_33<999999999 HJ_35賦值:HJ_32*HJ_34 HJ_36賦值:1日前的26日內(nèi)收盤價(jià)的最高值的2日簡(jiǎn)單移動(dòng)平均 HJ_37賦值:收盤價(jià)的26日簡(jiǎn)單移動(dòng)平均 HJ_38賦值:收盤價(jià)-HJ_37的2乘冪 HJ_39賦值:HJ_38的13日簡(jiǎn)單移動(dòng)平均 HJ_40賦值:HJ_39的開方 HJ_41賦值:HJ_37+2*HJ_40 HJ_42賦值:1日前的HJ_41 HJ_43賦值:收盤價(jià)上穿HJ_36 AND 最高價(jià)>1日前的HJ_41 OR (收盤價(jià)>HJ_36 AND 收盤價(jià)上穿1日前的HJ_41) AND 收盤價(jià)/開盤價(jià)>0.998 HJ_44賦值:平滑異同平均的MACD HJ_45賦值:隨機(jī)指標(biāo)KD的K HJ_46賦值:隨機(jī)指標(biāo)KD的D HJ_47賦值:RSI的RSI1 HJ_48賦值:RSI的RSI3 HJ_49賦值:收盤價(jià)-1日前的收盤價(jià) HJ_50賦值:如果HJ_49>=0,返回HJ_49,否則返回0*HJ_9 HJ_51賦值:如果HJ_49<0,返回-HJ_49,否則返回0*HJ_9 HJ_52賦值:HJ_50的10日平滑移動(dòng)平均 HJ_53賦值:HJ_51的10日平滑移動(dòng)平均 HJ_54賦值:HJ_50的6日平滑移動(dòng)平均 HJ_55賦值:HJ_51的6日平滑移動(dòng)平均 HJ_56賦值:100*HJ_52/(HJ_52+HJ_53)的10日簡(jiǎn)單移動(dòng)平均*HJ_9 HJ_57賦值:100*HJ_54/(HJ_54+HJ_55)的6日簡(jiǎn)單移動(dòng)平均*HJ_9 HJ_58賦值:收盤價(jià)的5日簡(jiǎn)單移動(dòng)平均/收盤價(jià)的10日簡(jiǎn)單移動(dòng)平均>0.999 AND 收盤價(jià)的10日簡(jiǎn)單移動(dòng)平均/收盤價(jià)的20日簡(jiǎn)單移動(dòng)平均>0.9847 AND 收盤價(jià)的20日簡(jiǎn)單移動(dòng)平均>收盤價(jià)的60日簡(jiǎn)單移動(dòng)平均 AND 1日前的統(tǒng)計(jì)8日中滿足收盤價(jià)的10日簡(jiǎn)單移動(dòng)平均/收盤價(jià)的20日簡(jiǎn)單移動(dòng)平均<1.017ORMA(收盤價(jià),5)/收盤價(jià)的10日簡(jiǎn)單移動(dòng)平均<1.017的天數(shù)>=1 AND 收盤價(jià)的20日簡(jiǎn)單移動(dòng)平均/收盤價(jià)的60日簡(jiǎn)單移動(dòng)平均<1.121 HJ_59賦值:(收盤價(jià)-收盤價(jià)的60日簡(jiǎn)單移動(dòng)平均)/收盤價(jià)的60日簡(jiǎn)單移動(dòng)平均*100 AND 收盤價(jià)的20日簡(jiǎn)單移動(dòng)平均>收盤價(jià)的60日簡(jiǎn)單移動(dòng)平均 AND 收盤價(jià)的60日簡(jiǎn)單移動(dòng)平均>收盤價(jià)的120日簡(jiǎn)單移動(dòng)平均 AND 收盤價(jià)的5日簡(jiǎn)單移動(dòng)平均>1日前的收盤價(jià)的5日簡(jiǎn)單移動(dòng)平均 HJ_64賦值:收盤價(jià)>1日前的收盤價(jià)*1.1-0.01 HJ_65賦值:20日內(nèi)最高價(jià)的最高值=1日內(nèi)收盤價(jià)的最高值 AND 成交量(手)>0 AND 收盤價(jià)的有效數(shù)據(jù)周期數(shù)*HJ_2>=20 HJ_66賦值:成交量(手)/1日前的成交量(手)*HJ_2>1.9 HJ_67賦值:HJ_63 AND HJ_64 AND HJ_65 AND HJ_66 HJ_68賦值:收盤價(jià)的5日簡(jiǎn)單移動(dòng)平均 HJ_69賦值:收盤價(jià)的10日簡(jiǎn)單移動(dòng)平均 HJ_70賦值:收盤價(jià)的20日簡(jiǎn)單移動(dòng)平均 HJ_71賦值:收盤價(jià)的30日簡(jiǎn)單移動(dòng)平均 HJ_72賦值:收盤價(jià)的60日簡(jiǎn)單移動(dòng)平均 HJ_73賦值:收盤價(jià)>HJ_68 AND HJ_68>HJ_69 AND HJ_69>HJ_70 AND 收盤價(jià)>HJ_72 HJ_74賦值:收盤價(jià)/1日前的收盤價(jià)>1.05 AND 1日前的收盤價(jià)/2日前的收盤價(jià)<1.05 AND 收盤價(jià)/10日內(nèi)收盤價(jià)的最低值<1.4 HJ_75賦值:成交量(手)/1日前的成交量(手)>2 OR 成交量(手)=15日內(nèi)成交量(手)的最高值 HJ_76賦值:當(dāng)前流通股本(手)<10000000 HJ_77賦值:(收盤價(jià)的5日簡(jiǎn)單移動(dòng)平均/1日前的收盤價(jià)的5日簡(jiǎn)單移動(dòng)平均-1)*100的反正切*57.299999>40 HJ_78賦值:(收盤價(jià)的10日簡(jiǎn)單移動(dòng)平均/1日前的收盤價(jià)的10日簡(jiǎn)單移動(dòng)平均-1)*100的反正切*57.299999>30 HJ_79賦值:(收盤價(jià)的20日簡(jiǎn)單移動(dòng)平均/1日前的收盤價(jià)的20日簡(jiǎn)單移動(dòng)平均-1)*100的反正切*57.299999>20 HJ_80賦值:(收盤價(jià)的30日簡(jiǎn)單移動(dòng)平均/1日前的收盤價(jià)的30日簡(jiǎn)單移動(dòng)平均-1)*100的反正切*57.299999>10 HJ_81賦值:HJ_77 AND HJ_78 AND HJ_79 AND HJ_80 HJ_82賦值:KDJ的K>1日前的KDJ的K*HJ_2 HJ_83賦值:KDJ的D>1日前的KDJ的D*HJ_2 AND KDJ的D<70 HJ_84賦值:KDJ的J>1日前的KDJ的J*HJ_2 HJ_85賦值:HJ_82 AND HJ_83 AND HJ_84 HJ_86賦值:HJ_7 AND HJ_74 AND HJ_75 AND HJ_76 AND HJ_81 AND HJ_85 HJ_87賦值:HJ_86的15日過濾*HJ_2 HJ_88賦值:HJ_67 OR HJ_87 輸出龍頭:90*(((HJ_88 AND HJ_62)*HJ_2 OR HJ_35 OR HJ_22) AND 主力資金動(dòng)向>1) 程序源碼 JH:=vol*CLOSE; JHO:=SUM(JH,2)/SUM(VOL,2); JH0:=EMA(JHO,10); 主力資金動(dòng)向:=IF((JHO-JH0)*20/JHO>1,(JHO-JH0)*200/JHO,0),COLORWHITE,LINETHICK2; HJ_1:=DYNAINFO(4)>0 AND HHV(HIGH,10)/LLV(LOW,10)<1.25 AND REF(CLOSE,1)<LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85 AND CLOSE>OPEN AND CLOSE>=HHV(HIGH,10); HJ_2:=IF(DATETODAY(DATE)<999999999,1,DRAWNULL); HJ_3:=EMA(CLOSE,5); HJ_4:=EMA(CLOSE,10); HJ_5:=EMA(CLOSE,14); HJ_6:=EMA(CLOSE,18); HJ_7:=EMA(CLOSE,40); HJ_8:=EMA(CLOSE,60); HJ_9:=IF(DATE<999999999,1,DRAWNULL); HJ_10:=MAX(HJ_7,HJ_8); HJ_11:=CLOSE>HJ_10 AND HJ_1 AND (CLOSE>REF(HHV(HIGH,3),1)*HJ_2 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.07); HJ_12:=VOL; HJ_13:=MA(HJ_12,5); HJ_14:=HJ_13+HJ_13>HJ_12; HJ_15:=DYNAINFO(4)>0 AND HHV(HIGH,10)/LLV(LOW,10)<1.25 AND REF(CLOSE,1)<(LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85)*HJ_2 AND CLOSE>OPEN AND CLOSE>=HHV(HIGH,10)*HJ_9; HJ_16:=(CLOSE>REF(HHV(HIGH,3),1)*HJ_2 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.07)*HJ_2 AND HJ_15 AND HJ_14; HJ_17:=DYNAINFO(4)>0 AND HHV(HIGH,10)/LLV(LOW,10)<1.25 AND REF(CLOSE,1)*HJ_2<LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85 AND CLOSE>OPEN AND CLOSE>=HHV(HIGH,10); HJ_18:=(CLOSE-REF(CLOSE,1)*HJ_2)/REF(CLOSE,1)*100>7; HJ_19:=HJ_17 AND HJ_18; HJ_20:=DATETODAY(DATE); HJ_21:=HJ_20>9344 AND HJ_20<999999999; HJ_22:=(HJ_11 AND HJ_19)*HJ_21; HJ_23:=EMA(CLOSE,5); HJ_24:=EMA(CLOSE,10); HJ_25:=EMA(CLOSE,14); HJ_26:=EMA(CLOSE,18); HJ_27:=EMA(CLOSE,40); HJ_28:=EMA(CLOSE,60); HJ_29:=MAX(MAX(MAX(MAX(MAX(HJ_23,HJ_4),HJ_25),HJ_26),HJ_27),HJ_28)*HJ_9; HJ_30:=MIN(MIN(MIN(MIN(MIN(HJ_23,HJ_4),HJ_25),HJ_26),HJ_27),HJ_28)*HJ_9; HJ_31:=CLOSE>HJ_29 AND LOW<HJ_30 AND (CLOSE>REF(HHV(HIGH,3),1) AND (CLOSE-REF(CLOSE,1)*HJ_2)/REF(CLOSE,1)>0.09); HJ_32:=FILTER(HJ_31>0,0)=1; HJ_33:=DATETODAY(DATE); HJ_34:=HJ_33>9350 AND HJ_33<999999999; HJ_35:=HJ_32*HJ_34; HJ_36:=MA(REF(HHV(CLOSE,26),1),2); HJ_37:=MA(CLOSE,26); HJ_38:=POW(CLOSE-HJ_37,2); HJ_39:=MA(HJ_38,13); HJ_40:=SQRT(HJ_39); HJ_41:=HJ_37+2*HJ_40; HJ_42:=REF(HJ_41,1); HJ_43:=crOSS(CLOSE,HJ_36) AND HIGH>REF(HJ_41,1) OR (CLOSE>HJ_36 AND CROSS(CLOSE,REF(HJ_41,1))) AND CLOSE/OPEN>0.998; HJ_44:=macd.MacD; HJ_45:=kd.K; HJ_46:=KD.D; HJ_47:=rsi.RSI1; HJ_48:=RSI.RSI3; HJ_49:=CLOSE-REF(CLOSE,1); HJ_50:=IF(HJ_49>=0,HJ_49,0)*HJ_9; HJ_51:=IF(HJ_49<0,-HJ_49,0)*HJ_9; HJ_52:=MEMA(HJ_50,10); HJ_53:=MEMA(HJ_51,10); HJ_54:=MEMA(HJ_50,6); HJ_55:=MEMA(HJ_51,6); HJ_56:=MA(100*HJ_52/(HJ_52+HJ_53),10)*HJ_9; HJ_57:=MA(100*HJ_54/(HJ_54+HJ_55),6)*HJ_9; HJ_58:=MA(CLOSE,5)/MA(CLOSE,10)>0.999 AND MA(CLOSE,10)/MA(CLOSE,20)>0.9847 AND MA(CLOSE,20)>MA(CLOSE,60) AND REF(COUNT(MA(CLOSE,10)/MA(CLOSE,20)<1.017 OR MA(CLOSE,5)/MA(CLOSE,10)<1.017,8)>=1,1) AND MA(CLOSE,20)/MA(CLOSE,60)<1.121; HJ_59:=(CLOSE-MA(CLOSE,60))/MA(CLOSE,60)*100; HJ_60:=COUNT(HJ_59<35,100)>=95; HJ_61:=HJ_43 AND HJ_58>0 AND NOT(DYNAINFO(4)=0) AND HJ_60 AND REF(COUNT(MA(CLOSE,20)>MA(CLOSE,30),4)=4 AND COUNT(CLOSE>MA(CLOSE,5),3)>=2,1) AND VOL>REF(VOL,1) AND (REF(COUNT(CLOSE>OPEN,10)>=6 OR COUNT(CLOSE>OPEN,5)>=4,1) OR CLOSE=HIGH) AND (CROSS(HJ_57,HJ_56) OR CROSS(HJ_44,0) OR REF(COUNT(CROSS(HJ_44,0),3)=1 AND HJ_44<0.15 AND CLOSE/OPEN>0.989 AND CLOSE/REF(CLOSE,1)<1.03,1) OR CROSS(HJ_45,HJ_46) OR CROSS(HJ_47,HJ_48)) AND REF(CLOSE/OPEN>0.988 AND (CLOSE>OPEN OR (CLOSE<=OPEN AND HIGH/LOW<1.049)),1) AND HIGH/CLOSE<1.013 AND CLOSE/OPEN>1.05; HJ_62:=HJ_11+HJ_16+HJ_19+HJ_32+HJ_61>=2; HJ_63:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,20)>MA(CLOSE,60) AND MA(CLOSE,60)>MA(CLOSE,120) AND MA(CLOSE,5)>REF(MA(CLOSE,5),1); HJ_64:=CLOSE>REF(CLOSE,1)*1.1-0.01; HJ_65:=HHV(HIGH,20)=HHV(CLOSE,1) AND VOL>0 AND BARSCOUNT(CLOSE)*HJ_2>=20; HJ_66:=VOL/REF(VOL,1)*HJ_2>1.9; HJ_67:=HJ_63 AND HJ_64 AND HJ_65 AND HJ_66; HJ_68:=MA(CLOSE,5); HJ_69:=MA(CLOSE,10); HJ_70:=MA(CLOSE,20); HJ_71:=MA(CLOSE,30); HJ_72:=MA(CLOSE,60); HJ_73:=CLOSE>HJ_68 AND HJ_68>HJ_69 AND HJ_69>HJ_70 AND CLOSE>HJ_72; HJ_74:=CLOSE/REF(CLOSE,1)>1.05 AND REF(CLOSE,1)/REF(CLOSE,2)<1.05 AND CLOSE/LLV(CLOSE,10)<1.4; HJ_75:=VOL/REF(VOL,1)>2 OR VOL=HHV(VOL,15); HJ_76:=CAPITAL<10000000; HJ_77:=ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*57.299999>40; HJ_78:=ATAN((MA(CLOSE,10)/REF(MA(CLOSE,10),1)-1)*100)*57.299999>30; HJ_79:=ATAN((MA(CLOSE,20)/REF(MA(CLOSE,20),1)-1)*100)*57.299999>20; HJ_80:=ATAN((MA(CLOSE,30)/REF(MA(CLOSE,30),1)-1)*100)*57.299999>10; HJ_81:=HJ_77 AND HJ_78 AND HJ_79 AND HJ_80; HJ_82:=kdj.K>REF(KDJ.K,1)*HJ_2; HJ_83:=KDJ.D>REF(KDJ.D,1)*HJ_2 AND KDJ.D<70; HJ_84:=KDJ.J>REF(KDJ.J,1)*HJ_2; HJ_85:=HJ_82 AND HJ_83 AND HJ_84; HJ_86:=HJ_7 AND HJ_74 AND HJ_75 AND HJ_76 AND HJ_81 AND HJ_85; HJ_87:=FILTER(HJ_86,15)*HJ_2; HJ_88:=HJ_67 OR HJ_87; 龍頭:90*(((HJ_88 AND HJ_62)*HJ_2 OR HJ_35 OR HJ_22) AND 主力資金動(dòng)向>1); 注: 館內(nèi)各種公式為學(xué)習(xí)編程而保存,,實(shí)戰(zhàn)使用前一定要看其中是否有未來函數(shù)并自己親自測(cè)試成功率,決不能依據(jù)公式名稱的描述和形容去投資,,據(jù)此入市造成投資損失由投資者自己承擔(dān),。 發(fā)文不易,,如獲益,歡迎贊賞,贊賞必復(fù),! |
|