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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
    上一主题 下一主题

    [通达信] 「指标」老鸭头主图副图 选股 源码


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

    22万

    主题

    22万

    帖子

    14

    精华

    积分
    11040
    楼主
    2024-2-28 09:41:58
    【资料名称】:老鸭头主图副图 选股 源码介绍
    【资料描述】:

    老鸭头主图副图 选股 源码

    老鸭头 主图
    MA5:MA(CLOSE,5),COLOR00FFFF;
    MA10:MA(CLOSE,10),COLORFF00FF;
    MA60:MA(CLOSE,60),COLOR00FF00;
    PDAY1:=BARSLAST(CROSS(MA5,MA60));{5日均线上穿60日均线}
    PDAY2:=BARSLAST(CROSS(MA10,MA60));{10日均线上穿60日均线}
    PDAY3:=BARSLAST((HIGH=HHV(HIGH,PDAY2)));{形成头部要下跌}
    PDAY4:=BARSLAST(CROSS(MA10,MA5));{下跌后,5日均线与10日均线形成死叉}
    PDAY5:=BARSLAST(CROSS(MA5,MA10));{回落不久后,5日均线与10日均线形成金叉}
    A1:=(PDAY1>PDAY2) AND (PDAY2>PDAY3) AND (PDAY3>PDAY4) AND (PDAY4>PDAY5) AND (PDAY5<5);
    A2:=(COUNT(CROSS(MA10,MA5),PDAY2)=1);
    AA:=IF(A1 AND A2 AND (MA(CLOSE,5)>=MA(CLOSE,10)) AND (MA(CLOSE,10)>MA(CLOSE,60)),10,0);
    BB:=FILTER(A1 AND A2 AND (MA(CLOSE,5)>=MA(CLOSE,10)) AND (MA(CLOSE,10)>MA(CLOSE,60)),5);
    老鸭头:IF(AA AND BB,1,0),COLOR00FF00;
    DRAWICON(AA AND BB,LOW,1),COLORFFFF00;
    DRAWTEXT(AA AND BB,(LOW)*(0.98),'老鸭头'),COLOR00FFFF;

    老鸭头副图
    Var1:=MA(CLOSE,5);
    Var2:=MA(CLOSE,10);
    Var3:=MA(CLOSE,60);
    Var4:=BARSLAST(CROSS(Var1,Var3));
    Var5:=BARSLAST(CROSS(Var2,Var3));
    Var6:=BARSLAST(HIGH=HHV(HIGH,Var5));
    Var7:=BARSLAST(CROSS(Var2,Var1));
    Var8:=BARSLAST(CROSS(Var1,Var2));
    Var9:=Var4>Var5 AND Var5>Var6 AND Var6>Var7 AND Var7>Var8 AND Var8<5;
    VarA:=COUNT(CROSS(Var2,Var1),Var5)=1;
    老鸭头:Var9 AND VarA and Var3>ref(Var3,1);
    DRAWICON( Var9 AND VarA and Var3>ref(Var3,1),1.1,1);

    老鸭头选股
    MA5 := MA(CLOSE,5);
    MA10 := MA(CLOSE,10);
    MA60 := MA(CLOSE,60);
    PDAY1 := BARSLAST(CROSS(MA5,MA60));
    PDAY2 := BARSLAST(CROSS(MA10,MA60));
    PDAY3 := BARSLAST(HIGH=HHV(HIGH,PDAY2));
    PDAY4 := BARSLAST(CROSS(MA10,MA5));
    PDAY5 := BARSLAST(CROSS(MA5,MA10));
    A1:= PDAY1>PDAY2 AND PDAY2>PDAY3 AND PDAY3>PDAY4 AND PDAY4>PDAY5 AND PDAY5<5;
    A2:= COUNT(CROSS(MA10,MA5),PDAY2)=1;
    A1 AND A2;


     




     



    gd35085


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






    上一篇:「指标」参数还是参数,对前期副图指标的参数优化,贴图说明
    下一篇:「指标」涨停之攻击迫线形态
    回复

    举报

    QQ|

    GMT+8, 2024-11-10 11:51

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