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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
    上一主题 下一主题

    [通达信] 「指标」五线布林(主图源码)

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

    22万

    主题

    22万

    帖子

    14

    精华

    积分
    11040
    楼主
    2024-4-1 09:26:37
    【资料名称】:五线布林(主图源码)介绍
    【资料描述】:

    五线布林(主图源码)

    DRAWGBKLAST(CLOSE>0,STRIP(RGB(30,30,80),RGB(10,20,20),2));
    中轨 :MA(CLOSE,20),ColorFF3EFF;
    上上轨:中轨 + 2*STD(CLOSE,20),Color2D2DFF;
    下下轨:中轨 - 2*STD(CLOSE,20),Color11FF11;
    上轨:中轨 + 1*STD(CLOSE,20),Color35FFFF;
    下轨:中轨 - 1*STD(CLOSE,20),ColorFFFFFF;
    {STICKLINE(中轨<REF(中轨,1) AND REF(中轨,1)<REF(中轨,2),中轨*1.005,中轨*0.995,9,0),ColorFFFF46 ; }

    MTM:=C-REF(C,1);
    DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
    买1:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
    DRAWTEXT(FILTER(买1=1,5),LOW-0.17,'▲'),Color46FFFF;
    LC:=REF(CLOSE,1);
    RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
    DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'▼'),ColorFFFFFF;
    STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),COLOR0000FF;
    STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0 ),COLOR0000FF;
    STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5 ,0 ),COLOR00FF00;
    STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),COLOR00FF00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,10,0 ),COLORff7700;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLORff9900;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLORffbb00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORffcc00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORffdd00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORffee00;
    STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORffFF00;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,10,0) ,COLOR000055;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000066;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR000077;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000bb;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000dd;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000ff;
    var9Q:=C= HHV(C,4)AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2);

    STICKLINE(var9Q,C,(O+C)/2,10,0),color000055;
    STICKLINE(var9Q,C,(O+C)/2,6,0),color000066;
    STICKLINE(var9Q,C,(O+C)/2,5,0),color000077;
    STICKLINE(var9Q,C,(O+C)/2,4,0),color000099;
    STICKLINE(var9Q,C,(O+C)/2,3,0),color0000bb;
    STICKLINE(var9Q,C,(O+C)/2,2,0),color0000dd;
    STICKLINE(var9Q,C,(O+C)/2,1,0),color0000ff;
    varaQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);

    STICKLINE(varaQ,C,(O+C)/2,10,0),colorff11ff;
    STICKLINE(varaQ,C,(O+C)/2,6,0),colorff33ff;
    STICKLINE(varaQ,C,(O+C)/2,5,0),colorff55ff;
    STICKLINE(varaQ,C,(O+C)/2,4,0),colorff77ff;
    STICKLINE(varaQ,C,(O+C)/2,3,0),colorff99ff;
    STICKLINE(varaQ,C,(O+C)/2,2,0),colorffbbff;
    STICKLINE(varaQ,C,(O+C)/2,1,0),colorffddff;
    varbQ:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<>HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2);

    STICKLINE(varbQ,C,(O+C)/2,10,0),color333333;
    STICKLINE(varbQ,C,(O+C)/2,6,0),color555555;
    STICKLINE(varbQ,C,(O+C)/2,5,0),color777777;
    STICKLINE(varbQ,C,(O+C)/2,4,0),color999999;
    STICKLINE(varbQ,C,(O+C)/2,3,0),colorbbbbbb;
    STICKLINE(varbQ,C,(O+C)/2,2,0),colordddddd;
    STICKLINE(varbQ,C,(O+C)/2,1,0),colorffffff;
    varcQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);

    STICKLINE(varcQ,O,(O+C)/2,10,0),color003300;
    STICKLINE(varcQ,O,(O+C)/2,6,0),color005500;
    STICKLINE(varcQ,O,(O+C)/2,5,0),color007700;
    STICKLINE(varcQ,O,(O+C)/2,4,0),color009900;
    STICKLINE(varcQ,O,(O+C)/2,3,0),color00bb00;
    STICKLINE(varcQ,O,(O+C)/2,2,0),color00dd00;
    STICKLINE(varcQ,O,(O+C)/2,1,0),color00ff00;
    vardQ:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);

    STICKLINE(vardQ,O,(O+C)/2,10,0),colorff1100;
    STICKLINE(vardQ,O,(O+C)/2,6,0),colorff3300;
    STICKLINE(vardQ,O,(O+C)/2,5,0),colorff5500;
    STICKLINE(vardQ,O,(O+C)/2,4,0),colorff7700;
    STICKLINE(vardQ,O,(O+C)/2,3,0),colorff9900;
    STICKLINE(vardQ,O,(O+C)/2,2,0),colorffbb00;
    STICKLINE(vardQ,O,(O+C)/2,1,0),colorffdd00;
     





    gd7400


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






    上一篇:「指标」会员专用-(附图源码)
    下一篇:「指标」一阳穿四线(附图源码)
    回复

    举报

    QQ|

    GMT+8, 2024-11-10 21:23

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