点击关注↓↓↓,置顶+星标每天订阅,学习更多指标内容☼↓↓↓


一、通达信选股公式如何设置:
1、条件选股公式的添加:公式管理器—条件选股公式—其他类型
点击”新建”按钮。然后在弹出的窗口中,填写指标的名称、代码等信息,将指标源码复制粘贴到代码编辑区域中,并根据需要填写指标的相关属性信息。最后点击”保存”按钮即可完成指标的创建和导入。

2、条件选股公式的使用:通达信选股器—条件选股—在条件选股公式栏找到自己需要的公式—加入条件—选股入板块,确定即可。


二、选股指标公式及效果如下:
CTA3:=EMA((EMA(CLOSE*vol,3)/EMA(VOL,3)+EMA(CLOSE*VOL,6)/EMA(VOL,6)+EMA(CLOSE*VOL,12)/EMA(VOL,12)+EMA(CLOSE*VOL,24)/EMA(VOL,24))/4,18);
CTA4:=1.06*CTA3;
CTA5:=MA(CLOSE,5);
CTA6:=MA(CLOSE,10);
CTA9:=REF(COUNT(CTA5>CTA6,7)>=1 AND (CTA5>REF(CTA5,1) OR CLOSE>REF(CLOSE,1) OR CLOSE>OPEN),1) AND crOSS(CLOSE,CTA5) AND CLOSE>CTA4 AND CTA5>REF(CTA5,1) AND CLOSE>OPEN AND CLOSE>REF(CLOSE,1)*1.015;
CTA10:=MA(CLOSE,20);
CTA11:=CLOSE>MA(CLOSE,5);
CTA12:=MA(CLOSE,5)>MA(CLOSE,10);
CTA13:=CLOSE>MA(CLOSE,10);
CTA14:=MA(CLOSE,5)>MA(CLOSE,20);
CTA15:=CLOSE>MA(CLOSE,20);
CTA16:=REF(CTA10,1);
CTA17:=CTA10>CTA16;
CTA18:=IF(CTA11,10,0-10)+IF(CTA12,10,0-10)+IF(CTA13,10,0-10)+IF(CTA14,10,0-10)+IF(CTA15,10,0-10)+IF(CTA17,10,0-10);
CTA21:=CTA18=60;
CTA23:=BARSLAST(NOT(CTA21));
CTA24:=COUNT(REF(C/REF(C,1)>1.097,1),20);
CTA25:=CTA9 AND CTA21=1 AND CTA23=1 AND CTA24;
CTA26:=C/REF(C,1)>1.097;
CTA27:=REF(CLOSE,1)/REF(CLOSE,2)<=0.96 OR REF(OPEN,1)/REF(CLOSE,1)>=1.05;
CTA28:=HIGH/REF(CLOSE,1)>1.041 AND CLOSE>REF(CLOSE,1);
CTA29:=CTA27 AND CTA28;
CTA30:=REF(CLOSE,2)/REF(CLOSE,3)<1.099;
CTA31:=CTA29 AND CTA30;
CTA32:=COUNT(REF(CTA26,3),8) AND CTA31;
CTA33:=MA(CLOSE,20);
CTA34:=CLOSE>MA(CLOSE,5);
CTA35:=MA(CLOSE,5)>MA(CLOSE,10);
CTA36:=CLOSE>MA(CLOSE,10);
CTA37:=MA(CLOSE,5)>MA(CLOSE,20);
CTA38:=CLOSE>MA(CLOSE,20);
CTA39:=REF(CTA33,1);
CTA40:=CTA33>CTA39;
CTA41:=IF(CTA34,10,0-10)+IF(CTA35,10,0-10)+IF(CTA36,10,0-10)+IF(CTA37,10,0-10)+IF(CTA38,10,0-10)+IF(CTA40,10,0-10);
CTA44:=CTA41=60;
CTA46:=BARSLAST(NOT(CTA44));
CTA47:=CTA32 AND CTA44=1 AND CTA46=1;
CTA48:=REF(C/REF(C,1)>1.097,7);
CTA49:=HIGH/REF(CLOSE,1)>1.031 AND BETWEEN(OPEN/REF(OPEN,7),1.05,0.85);
CTA50:=REF(OPEN,1)>REF(MA(CLOSE,5),1) AND REF(CLOSE,1)<REF(MA(CLOSE,10),1) AND REF(MA(CLOSE,5),1)>REF(MA(CLOSE,10),1);
CTA51:=CTA48 AND CTA49 AND CTA50;
CTA52:=CTA51 AND REF(CLOSE,1)/REF(CLOSE,2)<0.97 AND REF(OPEN,1)>REF(CLOSE,1);
CTA53:=CTA47 OR CTA52;
CTA70:=MA(CLOSE,30);
CTA73:=(C/REF(C,1)-1)*100;
CTA77:=IF((C/REF(C,1)-1)*100>=10-0.01*100/REF(CLOSE,1),1,0);
CTA93:=REF(CTA77,1);
CTA94:=COUNT(CTA93,5)>=1;
CTA99:=OPEN<=REF(CLOSE,1) AND CTA73<(-2);
CTA100:=COUNT(CTA99,2)>=1;
CTA101:=NOT(REF(CLOSE,3)/REF(CLOSE,4)>1.095 AND REF(CLOSE,2)/REF(CLOSE,3)>1.095 AND OPEN>REF(CLOSE,1) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(HIGH,1)/REF(OPEN,1)>1.03 AND REF(HIGH,1)/REF(CLOSE,2)>1.03);
CTA102:=NOT(REF(CLOSE,1)/REF(CLOSE,2)<0.909 AND REF(CLOSE,2)/REF(CLOSE,3)>1.099 AND REF(CLOSE,3)/REF(CLOSE,4)<1.09 AND REF(OPEN,2)>REF(CLOSE,3) AND REF(HIGH,1)/REF(OPEN,1)>1.03);
CTA103:=NOT(REF(CLOSE,1)/REF(CLOSE,2)<0.91 AND REF(CLOSE,2)/REF(CLOSE,3)<0.91 AND REF(CLOSE,2)/REF(HIGH,1)>1.03 AND REF(MA(CLOSE,5),1)/REF(MA(CLOSE,10),1)>1.05);
CTA104:=NOT(REF(CLOSE,2)/REF(CLOSE,3)>1.099 AND REF(CLOSE,1)<REF(OPEN,1) AND REF(HIGH,1)>REF(CLOSE,2) AND OPEN>REF(OPEN,1));
CTA105:=NOT(REF(CLOSE,3)/REF(CLOSE,4)>1.095 AND REF(HIGH,2)>REF(CLOSE,3) AND REF(LOW,2)<REF(OPEN,3) AND REF(CLOSE,3)/REF(CLOSE,4)>1.095 AND REF(CLOSE,2)<REF(OPEN,2) AND REF(OPEN,2)/REF(CLOSE,2)>1.05 AND OPEN/REF(LOW,2)<0.98);
CTA106:=NOT(REF(CLOSE,1)/REF(CLOSE,2)<0.901 AND REF(CLOSE,1)=REF(LOW,1) AND REF(OPEN,2)/REF(CLOSE,3)>1.03 AND REF(OPEN,1)/REF(CLOSE,2)<0.96 AND REF(CLOSE,2)/REF(CLOSE,3)>1.09 AND REF(OPEN,2)/REF(LOW,2)>1.05);
CTA107:=NOT(REF(CLOSE,2)/REF(CLOSE,3)<0.901 AND REF(CLOSE,3)/REF(CLOSE,4)<0.901 AND REF(CLOSE,4)/REF(CLOSE,5)>1.099 AND REF(OPEN,3)>REF(CLOSE,4) AND REF(CLOSE,3)<REF(OPEN,4) AND REF(OPEN,3)/REF(CLOSE,3)>1.05);
CTA108:=NOT(REF(CLOSE,2)/REF(CLOSE,3)<0.901 AND REF(OPEN,1)/REF(CLOSE,2)<0.98 AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,4)/REF(CLOSE,5)>1.095 AND REF(HIGH,3)>REF(CLOSE,4) AND REF(LOW,3)<REF(LOW,4));
CTA109:=NOT(REF(CLOSE,4)/REF(CLOSE,5)>1.095 AND REF(CLOSE,5)/REF(CLOSE,6)>1.095 AND REF(OPEN,4)>REF(CLOSE,5) AND REF(CLOSE,3)/REF(CLOSE,4)<0.91 AND REF(CLOSE,2)/REF(CLOSE,3)<0.91 AND REF(OPEN,2)/REF(CLOSE,3)<0.98 AND REF(CLOSE,2)>REF(CLOSE,1));
CTA110:=NOT(REF(CLOSE,4)/REF(CLOSE,5)>1.095 AND REF(OPEN,3)/REF(CLOSE,4)>1.03 AND REF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)/REF(CLOSE,3)<0.91 AND REF(OPEN,1)<REF(CLOSE,2));
CTA111:=NOT(REF(CLOSE,4)/REF(CLOSE,5)>1.099 AND REF(OPEN,4)<REF(MA(CLOSE,10),4) AND REF(HIGH,3)/REF(CLOSE,4)>1.03 AND REF(CLOSE,1)/REF(CLOSE,2)<0.95 AND CROSS(REF(MA(CLOSE,5),1),REF(MA(CLOSE,10),1)) AND OPEN/REF(OPEN,4)>1.03);
CTA112:=NOT(REF(CLOSE,4)/REF(CLOSE,5)<1.099 AND REF(CLOSE,5)/REF(CLOSE,6)>1.099 AND REF(LOW,1)>REF(CLOSE,5) AND OPEN>REF(CLOSE,5) AND REF(CLOSE,1)/REF(CLOSE,2)>0.96);
CTA113:=NOT(COUNT(EVERY(REF(CLOSE,1)/REF(CLOSE,2)>1.09,5),8) AND REF(CLOSE,2)/REF(CLOSE,3)>1.099 AND REF(HIGH,1)/REF(OPEN,1)>1.05 AND REF(CLOSE,1)/REF(CLOSE,2)<0.91);
CTA114:=CTA94 AND CTA73>2.5 AND REF(CTA100,1) AND REF(CTA73<2.4,1) AND CTA70>0 AND CTA101 AND CTA102 AND CTA103 AND CTA104 AND CTA105 AND CTA106 AND CTA107 AND CTA108 AND CTA109 AND CTA110 AND CTA111 AND CTA112 AND CTA113;
CTA115:=REF(CLOSE,10)/REF(CLOSE,11)>1.099 AND OPEN/REF(OPEN,10)<1.03 AND REF(CLOSE,3)/REF(CLOSE,4)<0.95 AND REF(CLOSE,2)/REF(CLOSE,3)<1.02 AND REF(CLOSE,1)/REF(CLOSE,2)<1.01 AND HIGH/REF(CLOSE,1)>1.041;
CTA116:=CTA25 OR CTA53 OR CTA114 OR CTA115;
CTA117:=IF(NAMELIKE(233),0,1) AND IF(NAMELIKE(234),0,1);
CTA118:=DYNAINFO(4)>0;
CTA119:=CTA117 AND CTA118;
CTA120:=NOT(INBLOCK(‘科创板’));
牛妖回头:CTA116 AND NOT(REF(CTA116,1)) AND CTA119 AND CTA120;




公众号实用收藏源码打包,每天源码文件更新→点击链接下载:知识星球

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。