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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
    上一主题 下一主题

    [通达信] 「指标」通达信机构K线+MACD副图指标 源码


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

    22万

    主题

    22万

    帖子

    14

    精华

    积分
    11040
    楼主
    2024-1-24 13:41:20
    【资料名称】:通达信机构K线+MACD副图指标 源码介绍
    【资料描述】:

    通达信机构K线+MACD副图指标 源码






    DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
    DEA1:=EMA(DIF1,9);
    MACD1:=2*(DIF1-DEA1),STICK;
    MACD2:=EMA(MACD1,3);
    STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,3.2,0),COLOR000055;
    STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2.7,0),COLOR000077;
    STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2.1,0),COLOR000099;
    STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1.5,0),COLOR0000BB;
    STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0.9,0),COLOR0000DD;
    STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0.3,0),COLOR0000FF;
    STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,3.2,0),COLOR555555;
    STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,2.7,0),COLOR777777;
    STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,2.1,0),COLOR999999;
    STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1.5,0),COLORBBBBBB;
    STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,0.9,0),COLORDDDDDD;
    STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,0.3,0),COLORFFFFFF;
    STICKLINE(MACD1<MACD2,0,MACD1,3.2,0),COLORB20000;
    STICKLINE(MACD1<MACD2,0,MACD1,2.7,0),COLOREC0000;
    STICKLINE(MACD1<MACD2,0,MACD1,2.1,0),COLORFF4600;
    STICKLINE(MACD1<MACD2,0,MACD1,1.5,0),COLORFF6300;
    STICKLINE(MACD1<MACD2,0,MACD1,0.9,0),COLORFF8B00;
    STICKLINE(MACD1<MACD2,0,MACD1,0.3,0),COLORFFAB00;
    STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;
    DIF:DIF1,COLOR33FF33,LINETHICK1;
    DEA:DEA1,COLORYELLOW,LINETHICK1;
    MACD:MACD1,NODRAW,COLORMAGENTA;
    N:=7; N2:=8; N3:=9;
    VAR1:=REF(MA(C,20),10);开:=O-VAR1;高:=H-VAR1;低:=L-VAR1;收:=C-VAR1;MID:=MA(C,20);
    UPPER:=MID+2*STD(C,20);LOWER:=MID-2*STD(C,20);
    V1:=(C-LOWER)/(UPPER-LOWER)*100;
    V2:=V1-EMA(V1,5);K1:=SUM(LLV(V2,4),4)/4;V3:=EMA(V2,64)*10;V4:=EMA(0.4*V2*(-1),3);
    V5:=-1*EMA(V2,39)*10;A:=V3>10;B:=V2>V4;D:=V5>10;E:=V3<=10 OR V2<=V4 OR V5<=10;
    均线1:MA(收, N);
    均线2:MA(收, N2);
    均线3:MA(收, N3);
    STICKLINE(C,0,0,6,0),COLORD9D919;
    STICKLINE(收>=开 AND E,高,低,0,0), COLORYELLOW;
    STICKLINE(收>=开 AND E,收,开,2,0) ,COLORYELLOW;
    STICKLINE(收< 开 AND E,高,低,0,0) ,COLORYELLOW;
    STICKLINE(收< 开 AND E,收,开,2,0) ,COLORYELLOW;
    STICKLINE(开> 收 AND A ,低,高,0,0),COLORFF0000;
    STICKLINE(开> 收 AND A ,收,开,2,0),COLORFF0000;
    STICKLINE(开<=收 AND A,低,高,0,0),COLORYELLOW;
    STICKLINE(开<=收 AND A,收,开,2,1),COLORYELLOW;
    STICKLINE(开> 收 AND B,低,高,0,0),COLORRED;
    STICKLINE(开> 收 AND B,收,开,2,0),COLORRED;
    STICKLINE(开<=收 AND B,低,高,0,0),COLORRED;
    STICKLINE(开<=收 AND B,收,开,2,1),COLORRED;
    STICKLINE(开> 收 AND D,低,高,0,0),COLORGREEN;
    STICKLINE(开> 收 AND D,收,开,2,0),COLORGREEN;
    {STICKLINE(开<=收 AND D,收,开,2,1),COLORGREEN};



    gd54824


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






    上一篇:「指标」通达信金钱魔鬼副图指标 源码
    下一篇:「指标」通达信波段奇准副图指标 源码
    回复

    举报

    QQ|

    GMT+8, 2024-11-15 07:06

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