• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • 【 】【通达信】极品绝顶主图指标公式

    发布时间: 2020-03-28 13:52 首页:股票一点通>股票公式>通达信公式> 阅读()

    {RSI顶底背离}
    VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
    VAR2:=REF(VAR1,1) AND CLOSE=REF(CLOSE,2);
    VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,1) AND CLOSEC AND REF(“KDJ.K”,BARSLAST(REF(CROSS(“KDJ.K”,”KDJ.D”),1))+1)C AND REF(“RSI.RSI1”,BARSLAST(REF(CROSS(“RSI.RSI1″,”RSI.RSI2”),1))+1)0,L-0.18,’◆R’),COLOR0000FF;{RSI底背离};
    DRAWTEXT(REF(C,BARSLAST(REF(CROSS(“MACD.DEA”,”MACD.DIF”),1))+1)“MACD.DIF” AND CROSS(“MACD.DEA”,”MACD.DIF”)>0,H+0.16,’★M’),COLOR00FF00;{MACD顶背离};
    DRAWTEXT(REF(C,BARSLAST(REF(CROSS(“KDJ.D”,”KDJ.K”),1))+1)“KDJ.K” AND CROSS(“KDJ.D”,”KDJ.K”)>0,H+0.08,’◎K’),COLORFFFFCC;{KDJ顶背离}
    DRAWTEXT(REF(C,BARSLAST(REF(CROSS(“RSI.RSI2″,”RSI.RSI1”),1))+1)“RSI.RSI1” AND CROSS(“RSI.RSI2″,”RSI.RSI1”)>0,H+0.04,’◆R’),COLORFF9900;{RSI顶背离};
    上涨家数:INDEXADV,COLOR0080FF,NODRAW;
    下跌家数:INDEXDEC,COLORGREEN,NODRAW;
    DRAWTEXT_FIX(1,0.00,0,0,’所属行业:’)COLOR00FFFF;
    DRAWTEXT_FIX(1,0.05,0,0,HYBLOCK)COLOR00FFFF;
    DRAWTEXT_FIX(1,0.14,0,0,’所属地区:’)COLOR00FFFF;
    DRAWTEXT_FIX(1,0.19,0,0,DYBLOCK)COLOR00FFFF;
    DRAWTEXT_FIX(1,0.30,0.00,0,’主题投资:’)COLOR00FFFF;
    DRAWTEXT_FIX(1,0.35,0.00,0,EXTERNSTR(0,2))COLOR00FFFF;
    DRAWTEXT_FIX(1,0.00,0.05,0,’主营业务:’)COLOR00FFFF;
    DRAWTEXT_FIX(1,0.05,0.05,0,EXTERNSTR(0,3))COLOR00FFFF;
    DRAWTEXT_FIX(1,0.00,0.10,0,’解禁日期:’)COLOR00FFFF;
    DRAWTEXT_FIX(1,0.05,0.10,0,EXTERNSTR(0,4))COLOR00FFFF;
    DRAWTEXT_FIX(1,0.00,0.15,0,’愚民概念:’),COLOR00FFFF;
    DRAWTEXT_FIX(1,0.05,0.15,0,EXTERNSTR(0,6)),COLOR00FFFF;
    DRAWRECTREL(0,500,135,999.4,IF(120,RGB(10,0,0),0));
    超B:=L2_AMO(0,2)/10000.0;
    大B:=L2_AMO(1,2)/10000.0;
    中B:=L2_AMO(2,2)/10000.0;
    小B:=L2_AMO(3,2)/10000.0;
    超S:=L2_AMO(0,3)/10000.0;
    大S:=L2_AMO(1,3)/10000.0;
    中S:=L2_AMO(2,3)/10000.0;
    小S:=L2_AMO(3,3)/10000.0;
    TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);
    主力进:=(超B)+(大B),NODRAW;
    主力出:=(超S)+(大S),NODRAW;
    小散进:=(中B)+(小B),NODRAW;
    小散出:=(中S)+(小S),NODRAW;
    DAZHIV:=CONST(MAX(ABS(主力进),MAX(ABS(主力出),MAX(ABS(小散进),ABS(小散出))))),NODRAW;
    DRAWRECTREL(0,CONST(940-(ABS(主力进)*250/DAZHIV)),30,960,IF(CONST(主力进>0),RGB(255,0,0),RGB(23,125,255)));
    DRAWRECTREL(32,CONST(940-(ABS(主力出)*250/DAZHIV)),62,960,IF(CONST(主力出>0),RGB(23,125,255),RGB(255,0,0)));
    DRAWRECTREL(70,CONST(940-(ABS(小散进)*250/DAZHIV)),100,960,IF(CONST(小散进>0),RGB(255,0,0),RGB(23,125,255)));
    DRAWRECTREL(102,CONST(940-(ABS(小散出)*250/DAZHIV)),132,960,IF(CONST(小散出>0),RGB(23,125,255),RGB(255,0,0)));
    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.0001,0.9,0,STRCAT(”,CON2STR(主力进/10,0))),COLORYELLOW;
    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.033,0.9,0,STRCAT(”,CON2STR(主力出/10,0))),COLORYELLOW;
    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.07,0.9,0,STRCAT(”,CON2STR(小散进/10,0))),COLORYELLOW;
    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.101,0.9,0,STRCAT(”,CON2STR(小散出/10,0))),COLORYELLOW;
    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.03,1,0,’(X10万元)’),COLOR00FFFF;
    DRAWTEXT_FIX(CURRBARSCOUNT=1,0,1,0,’主进出’),COLORCYAN;
    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,1,0,’散进出’),COLORCYAN;
    主力买力度:=LARGEINTRDVOL*1000/VOL;
    主力卖力度:=LARGEOUTTRDVOL*1000/VOL;
    AAD:=CONST(MAX(ABS(主力买力度),ABS(主力卖力度)))*4,NODRAW;
    DRAWRECTREL(0,515,CONST(ABS(主力买力度)*500/AAD),568,IF(CONST(主力买力度)>0,RGB(255,0,0),RGB(0,50,0)));
    DRAWRECTREL(0,570,CONST(ABS(主力卖力度)*500/AAD),623,IF(CONST(主力卖力度)>0,RGB(0,50,0),RGB(255,0,0)));
    DRAWTEXT_FIX(1,0,0.524,0,STRCAT(‘主买力度:’,CON2STR(主力买力度,0))),COLORYELLOW;
    DRAWTEXT_FIX(1,0,0.576,0,STRCAT(‘主卖力度:’,CON2STR(主力卖力度,0))),COLORYELLOW;

    特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。

    网站首页-股票知识--股票公式-散户炒股-问答百科--缠中说禅-概念股

    未经本站书面特别授权,请勿转载或建立镜像

    Copyright @ 2020 All Rights Reserved.版权所有 XMl地图
    Baidu
    map