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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
    上一主题 下一主题

    [通达信] 「指标」降魔妖副图/选股指标 通达信 源码分享


        [-----复制链接-----]

    22万

    主题

    22万

    帖子

    14

    精华

    积分
    11040
    楼主
    2023-11-30 14:10:22
    【资料名称】:降魔妖副图/选股指标 通达信 源码分享介绍
    【资料描述】:

    降魔妖副图/选股指标 通达信 源码分享





    {公式名称: 降魔妖}

    VAR1:=MA(CLOSE,5);
    VAR2:=MA(CLOSE,10);
    VAR3:=IF(CLOSE>=SAR.SAR AND (CLOSE>VAR1 OR CLOSE>VAR2),70,0);
    VAR4:=IF(CLOSE>SAR.SAR AND (CLOSE<VAR1 AND CLOSE<VAR2),50,0);
    VAR5:=IF(CLOSE<SAR.SAR,30,0);
    VAR6:=VAR3+VAR4+VAR5;
    VAR7:=IF(CLOSE>VAR1 AND VAR1>VAR2,70,0);
    VAR8:=IF(CLOSE<VAR1 AND VAR1<VAR2,30,0);
    VAR9:=VAR7+VAR8;
    VAR10:=IF(VAR9=0,50,0);
    VAR11:=VAR7+VAR8+VAR10;
    VAR12:=VAR6*0.5+VAR11*0.5;
    VAR13:=10;
    VAR14:=NOT(NAMELIKE(1) OR NAMELIKE(2));
    VAR15:=(CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND LOW<HIGH)*8;
    VAR16:=BARSCOUNT(CLOSE)>=30;
    VAR17:=(CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND LOW=HIGH)*3;
    VAR18:=CLOSE>OPEN*1.027;
    VAR19:=(HIGH>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE<HIGH)*2;
    VAR20:=VAR13+VAR15+VAR17+VAR19;
    VAR21:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
    VAR22:=VAR20*VAR21;
    VAR23:=(EMA(CLOSE,12)/EMA(CLOSE,26)-1)*1000;
    VAR24:=DYNAINFO(4)>0;
    VAR25:=EMA(VAR23,5);
    VAR26:=VAR25-REF(VAR25,1);
    VAR27:=(EMA(INDEXC,12)/EMA(INDEXC,26)-1)*1000;
    VAR28:=EMA(VAR27,5);
    VAR29:=VAR28-REF(VAR28,1);
    VAR30:=(VAR26-VAR29)*50;
    VAR31:=VAR22+VAR30+VAR12;
    VAR32:=VAR31>470;
    VAR33:=BARSLAST(VAR32);
    VAR34:=1171230;
    VAR35:=DATE<VAR34;
    VAR36:=BETWEEN(VAR33,0,2);
    VAR37:=MA(CLOSE,5);
    VAR38:=MA(CLOSE,10);
    VAR39:=VAR38<VAR37;
    VAR40:=REF(VAR36,1)>0 AND VAR39;
    VAR41:=REF(VAR40,1) AND VAR14 AND VAR16 AND VAR18 AND VAR24;
    XG:FILTER(VAR41,20);



    {降魔妖}
    {选股}
    VAR1:=MA(CLOSE,5);
    VAR2:=MA(CLOSE,10);
    VAR3:=IF(CLOSE>=SAR.SAR AND (CLOSE>VAR1 OR CLOSE>VAR2),70,0);
    VAR4:=IF(CLOSE>SAR.SAR AND (CLOSE<VAR1 AND CLOSE<VAR2),50,0);
    VAR5:=IF(CLOSE<SAR.SAR,30,0);
    VAR6:=VAR3+VAR4+VAR5;
    VAR7:=IF(CLOSE>VAR1 AND VAR1>VAR2,70,0);
    VAR8:=IF(CLOSE<VAR1 AND VAR1<VAR2,30,0);
    VAR9:=VAR7+VAR8;
    VAR10:=IF(VAR9=0,50,0);
    VAR11:=VAR7+VAR8+VAR10;
    VAR12:=VAR6*0.5+VAR11*0.5;
    VAR13:=10;
    VAR14:=NOT(NAMELIKE(1) OR NAMELIKE(2));
    VAR15:=(CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND LOW<HIGH)*8;
    VAR16:=BARSCOUNT(CLOSE)>=30;
    VAR17:=(CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND LOW=HIGH)*3;
    VAR18:=CLOSE>OPEN*1.027;
    VAR19:=(HIGH>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE<HIGH)*2;
    VAR20:=VAR13+VAR15+VAR17+VAR19;
    VAR21:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
    VAR22:=VAR20*VAR21;
    VAR23:=(EMA(CLOSE,12)/EMA(CLOSE,26)-1)*1000;
    VAR24:=DYNAINFO(4)>0;
    VAR25:=EMA(VAR23,5);
    VAR26:=VAR25-REF(VAR25,1);
    VAR27:=(EMA(INDEXC,12)/EMA(INDEXC,26)-1)*1000;
    VAR28:=EMA(VAR27,5);
    VAR29:=VAR28-REF(VAR28,1);
    VAR30:=(VAR26-VAR29)*50;
    VAR31:=VAR22+VAR30+VAR12;
    VAR32:=VAR31>470;
    VAR33:=BARSLAST(VAR32);
    VAR36:=BETWEEN(VAR33,0,2);
    VAR37:=MA(CLOSE,5);
    VAR38:=MA(CLOSE,10);
    VAR39:=VAR38<VAR37;
    VAR40:=REF(VAR36,1)>0 AND VAR39;
    VAR41:=REF(VAR40,1) AND VAR14 AND VAR16 AND VAR18 AND VAR24;
    XG:FILTER(VAR41,20);



    gd55063


    【下载地址隐藏】:                    点:回复可见地址
    游客,如果您要查看本帖隐藏内容请回复






    上一篇:「指标」通达信忍者欲妖主图指标(简化版)源码分享
    下一篇:「指标」通达信优化实战助手副图指标 源码
    回复

    举报

    QQ|

    GMT+8, 2024-11-16 09:32

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