股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[指标编写] 暴力主图之B选股指标公式


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-6-24 12:17:43

VAR5:=EMA(CLOSE,6)-EMA(CLOSE,13);
VAR6:=EMA(VAR5,20);
VAR7:=HHV(VAR5,20);
VAR8:=LLV(VAR5,20);
VAR9:=REF(VAR7,1);
VAR10:=REF(VAR8,1);
VAR11:=BARSCOUNT(C)>5;
VAR12:=REF(C,1);
VAR13:=(H-VAR12+0.01)/VAR12*100;
VAR14:=(VAR12-L+0.01)/VAR12*100;
VAR15:=VAR13>=5 AND VAR11 AND C=H;
VAR16:=VAR14>=5 AND VAR11 AND C=L;
VAR17:=VAR13>=10 AND VAR11 AND C=H;
VAR18:=VAR14>=10 AND VAR11 AND C=L;
VAR19:=VAR13>=20 AND VAR11 AND C=H;
VAR20:=VAR14>=20 AND VAR11 AND C=L;
VAR21:=IF(INBLOCK('科创板'),VAR19,IF(INBLOCK('创业板') AND DATE>1200823,VAR19,IF(INBLOCK('ST板块'),VAR15,VAR17)));
VAR85:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
VAR86:=FILTER(VAR85,10);
VAR87:=BARSLAST(VAR86);
VAR88:=REF(HIGH,VAR87+2);
VAR89:=REF(HIGH,VAR87+1);
VAR90:=REF(HIGH,VAR87);
VAR91:=MAX(VAR88,VAR89);
VAR92:=MAX(VAR91,VAR90);
VAR93:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
VAR94:=VAR87<150;
VAR95:=(OPEN-VAR92)/VAR92*100<30;
VAR96:=(CLOSE-LLV(LOW,VAR87))/LLV(LOW,VAR87)*100<50;
VAR97:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
VAR98:=vol/MA(VOL,5)<3.5;
VAR99:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
V1:=VAR93 AND VAR94 AND VAR95 AND VAR96 AND VAR97 AND VAR98 AND VAR99;
V2:=FILTER(V1,15);
VAR100:=MA(CLOSE,10);
VAR101:=MA(CLOSE,54);
VAR102:=(((CLOSE-VAR101)/VAR101)<0.1);
VAR103:=(((CLOSE-VAR100)/VAR100)<0.3);
VAR104:=(((VAR102=1) AND (VAR103=1))*0.2);
VAR105:=((((VAR104=0) AND (REF(VAR104,1)=0.2)) AND (REF((COUNT((VAR104=0.2),10)=10),1)=1))*-0.1);
V3:=VAR105=-0.1;
VAR106:=V2 OR V3;
VAR107:=DYNAINFO(7)/(REF(CLOSE,1))>1.05 AND (DYNAINFO(7)/O>1.05);
VAR108:=(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);
VAR109:=VAR106 AND VAR21 AND VAR108 AND VAR107;
B:VAR109;





回复

举报

QQ|

GMT+8, 2024-11-16 15:39

快速回复 返回顶部 返回列表