捕捉涨停个股排序 跟风捉涨停选股(通达信公式 排序 选股 源码 测试图)

[复制链接]
查看101 | 回复0 | 2022-6-27 18:40:31 | 显示全部楼层 |阅读模式

 捕捉涨停个股,可以做排序的通达信公式。

排序的方法:
快捷键,键盘输入 .401  即可进入排序,然后换上这个公式,就可以排序
 

{跟风捉涨停选股}
 
XA_1:=IF(BARSTATUS=2,OPEN,CLOSE);
XA_2:=(0.36095*XA_1-0.03309*REF(CLOSE,1)-0.04242*REF(CLOSE,2)-0.02674*REF(CLOSE,3)-0.00701*REF(CLOSE,4)-0.00265*REF(CLOSE,5)-0.00084*REF(CLOSE,6)-0.00029*REF(CLOSE,7)-0.000096*REF(CLOSE,8)-0.000032*REF(CLOSE,9)-0.000011*REF(CLOSE,10)-0.000004*REF(CLOSE,11)-0.000001*REF(CLOSE,12))/(1-0.75224);
XA_3:=OPEN/REF(CLOSE,1)<1.07;
{分析家公式网 WWW.70822.COM 整理}
XA_4:=OPEN/REF(CLOSE,1)>0 AND OPEN/REF(CLOSE,1)<1.07;
XA_5:=DYNAINFO(15)/OPEN/FINANCE(46)*100;
捕风捉影:(XA_2-XA_1)/XA_1*1000>55 AND XA_4 AND XA_5>0.5;
 
{捕捉涨停个股排序}
年涨幅以下:=200;波段涨以下:=60;
X_1:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_2:=EMA(X_1,9);
X_3:=BARSLAST(YEAR>REF(YEAR,1))+1;
X_4:=IF(X_3=DRAWNULL,BARSCOUNT(CLOSE)+1,X_3);
X_5:=(CLOSE/REF(CLOSE,X_4)-1)*100;
X_6:=BARSLASTCOUNT(X_1>X_2);
X_7:=(CLOSE/REF(CLOSE,X_6)-1)*100;
X_8:=0.1;
X_9:=CLOSE>=ZTPRICE(REF(CLOSE,1),X_8) AND LOW<HIGH;
X_10:=CLOSE>=ZTPRICE(REF(CLOSE,1),X_8) AND LOW=HIGH;
X_11:=HIGH>=ZTPRICE(REF(CLOSE,1),X_8) AND CLOSE<HIGH;
X_12:=1+0.8*X_9+0.3*X_10+0.2*X_11;
X_13:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_14:=X_13*X_12;
X_17:=0;
X_18:=0;
X_19:=1;
X_21:=EMA(CLOSE,2)-EMA(CLOSE,89)*X_19;
X_22:=EMA(X_21,30)*X_19;
X_23:=2*(X_21-X_22)*10*X_19;
X_24:=POW(X_23,3)*0.1+POW(X_23,2)*X_19;
X_25:=IF(X_18!=1 AND X_23>0.015,X_24,0)/45*X_19;
X_26:=(EMA(CLOSE,12)/EMA(CLOSE,26)-1)*1000;
X_27:=(EMA(INDEXC,12)/EMA(INDEXC,26)-1)*1000;
X_28:=EMA(X_26,5);
X_29:=EMA(X_27,5);
X_30:=X_28-REF(X_28,1);
X_31:=X_29-REF(X_29,1);
X_32:=IF(X_30-X_31>0 AND X_17=0,(X_30-X_31)*5,0);
X_33:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
X_34:=IF(CLOSE>OPEN,X_33*(HIGH-LOW),IF(CLOSE<OPEN,X_33*(HIGH-OPEN+(CLOSE-LOW)),VOL/2));
X_35:=IF(CLOSE>OPEN,X_33*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE<OPEN,X_33*(HIGH-LOW),VOL/2));
X_36:=SUM((X_34-X_35)/CAPITAL,1)*1000;
X_37:=VOL/10000;
X_38:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
X_39:=MOD(FROMOPEN,X_38);
X_40:=IF(X_39<0.5,X_38,X_39);
X_41:=IF(CURRBARSCOUNT=1 AND PERIOD<=5 AND DYNAINFO(8)>1,VOL*X_38/X_40/10000,DRAWNULL);
X_42:=IF(CURRBARSCOUNT=1 AND PERIOD<=5,X_41,X_37);
X_43:=X_42/REF(MA(X_42,5),1);
X_44:=IF(X_43>=100,10,IF(X_43>=50 AND X_43<100,20,X_43/2));
X_45:=DYNAINFO(17)>0;
X_46:=NOT(NAMELIKE(2) OR NAMELIKE(4) OR NAMELIKE(3));
X_47:=X_46 AND X_45 AND BARSCOUNT(CLOSE)>=30 AND X_25>REF(X_25,1);
X_48:=X_5<年涨幅以下 AND X_7<波段涨以下;
日序:IF(X_47=1 AND X_17!=1 AND CLOSE>=OPEN AND X_48,X_36+X_32+X_14+X_44,0),NODRAW;
周序:IF(X_18!=1 AND CLOSE>=OPEN,SUM(日序,5),0),NODRAW;
月序:IF(X_18!=1 AND CLOSE>=OPEN,SUM(日序,20),0),NODRAW;
年涨:(CLOSE/REF(CLOSE,X_4)-1)*100,NODRAW;
波段涨幅:(CLOSE/REF(CLOSE,X_6)-1)*100,NODRAW;
{分析家公式网 WWW.70822.COM 整理}

20206423864951.jpg

20206423864951.jpg

202064231758971.jpg

202064231758971.jpg

202064232466965.jpg

202064232466965.jpg

202064233127682.jpg

202064233127682.jpg

202064233771443.jpg

202064233771443.jpg

p20206423864951.jpg

p20206423864951.jpg

202064828671278.rar

4.17 KB, 下载次数: 0

售价: 4 金钱  [记录]  [购买]

202064828671278.rar

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则