最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 大智慧成交MACD副图指标

    正文概述    2024-04-13 00:12:26  

    源码

    {DRAWGBK(C=C,COLORRGB(130,130,130),COLORRGB(30,30,30),1);}
    DRAWGBKLAST(v>1,STRIP(RGB(130,130,130),RGB(30,30,30),0));
    {☆精确风险}
    {//------【参数定义】}
    RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
    K1:=SMA(RSV,10,1);
    D1:=SMA(K1,5,1);
    KK:=INTPART(K1);
    DD:=INTPART(D1);
    TFXXS:=KK+DD;{//变异KD风险系数}
    TGLD:=MOD(TFXXS,10);{//踏浪涨停概率点}
    TGLXS:=(TFXXS-REF(TFXXS,1))*10;{//变异KD乖离系数}
    TYCFX:=TFXXS+TGLXS;{//变异KD预测风险}
    {//------【数值显示】}
    风险系数:TFXXS,LINETHICK0,COLORYELLOW;
    乖离系数:TGLXS,LINETHICK0,COLORGREEN;
    预测风险:TYCFX,LINETHICK0,COLORCYAN;
    {//------【图解模板】}
    {级别拐点}
    VERTLINE(TGLXS>0 AND 100+TGLXS=REF(TYCFX,1),1),COLORYELLOW;
    VERTLINE(TGLXS<0 AND 100+TGLXS>=TYCFX AND 100+REF(TGLXS,1) {乖离系数}
    STICKLINE(TGLXS>0,100,100+TGLXS,8,0),COLOR000088;
    STICKLINE(TGLXS>0,100,100+TGLXS,7,0),COLOR000099;
    STICKLINE(TGLXS>0,100,100+TGLXS,6,0),COLOR0000AA;
    STICKLINE(TGLXS>0,100,100+TGLXS,5,0),COLOR0000BB;
    STICKLINE(TGLXS>0,100,100+TGLXS,4,0),COLOR0000CC;
    STICKLINE(TGLXS>0,100,100+TGLXS,3,0),COLOR0000DD;
    STICKLINE(TGLXS>0,100,100+TGLXS,2,0),COLOR0000EE;
    STICKLINE(TGLXS>0,100,100+TGLXS,1,0),COLOR0000FF;{//红柱}
    STICKLINE(TGLXS<0,100,100+TGLXS,8,0),COLOR008800;
    STICKLINE(TGLXS<0,100,100+TGLXS,7,0),COLOR009900;
    STICKLINE(TGLXS<0,100,100+TGLXS,6,0),COLOR00AA00;
    STICKLINE(TGLXS<0,100,100+TGLXS,5,0),COLOR00BB00;
    STICKLINE(TGLXS<0,100,100+TGLXS,4,0),COLOR00CC00;
    STICKLINE(TGLXS<0,100,100+TGLXS,3,0),COLOR00DD00;
    STICKLINE(TGLXS<0,100,100+TGLXS,2,0),COLOR00EE00;
    STICKLINE(TGLXS<0,100,100+TGLXS,1,0),COLOR00FF00;{//绿柱}
    STICKLINE(TGLXS=0 AND REF(TGLXS,1)>=0,100,100+TGLXS,8,0),COLORRED;
    STICKLINE(TGLXS=0 AND REF(TGLXS,1)<0,100,100+TGLXS,8,0),COLORGREEN;
    {风险系数}
    PARTLINE(TFXXS,TFXXS<160 AND TFXXS>50),LINETHICK2,COLORFF66FF;
    PARTLINE(TFXXS,TFXXS>50 AND TFXXS<160 AND TFXXS PARTLINE(TFXXS,TFXXS<=50),LINETHICK2,COLORYELLOW;
    PARTLINE(TFXXS,TFXXS>=160),LINETHICK2,COLORBLUE;
    {预测风险}
    PARTLINE(TYCFX,C>0),COLORCYAN;
    {//------【解盘分析】}
    DRAWTEXT(BARSTATUS=2 and TFXXS<=50,50,'操作风险提示:买入风险'),COLORYELLOW,ALIGN2;
    DRAWTEXT(BARSTATUS=2 and TFXXS>=160,50,'操作风险提示:卖出风险'),COLORCYAN,ALIGN2;
    DRAWTEXT(BARSTATUS=2 and TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS<=100,50,'操作风险提示:追涨博弈'),COLORRED,ALIGN2;
    DRAWTEXT(BARSTATUS=2 and TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS>100,50,'操作风险提示:稳健持股'),COLORMAGENTA,ALIGN2;
    DRAWTEXT(BARSTATUS=2 and TFXXS>50 AND TFXXS<160 AND TFXXS100,50,'操作风险提示:盘跌减仓'),COLORWHITE,ALIGN2;
    DRAWTEXT(BARSTATUS=2 and TFXXS>50 AND TFXXS<160 AND TFXXS


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 大智慧成交MACD副图指标 加入收藏