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

    正文概述    2024-04-14 08:04:18  

    九毛八公式指标

    公式模块:

    主力交锋指标在大智慧能显示各种颜色,在同花顺则不能显示,请老师修改
    源码
    Vur1:=vol/CAPITAL;
    Vur2:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);
    Vur3:=2.5*MAX(Vur1,Vur2);
    Vur4:=DMA(CLOSE,Vur3);
    Vur5:=20*(Vur4/REF(Vur4,1)-1)*38;
    Vur6:=EMA(Vur5,2);
    {
    Vur7:=EMA(Vur5,2);
    Vur8:=EMA(Vur7,3);
    VurS:=EMA(Vur7,8);
    Vur9:=1.1*(MAX(INDEXH,REF(INDEXC,1))/MIN(INDEXL,REF(INDEXC,1))-1);
    VurA:=2.5*MAX(Vur1,Vur9);
    VurB:=DMA(INDEXC,VurA);
    VurC:=EMA(20*(VurB/REF(VurB,1)-1),1)*38;
    VurD:=EMA(VurC,2);
    VurE:=EMA(VurC,2);
    }
    主力:vur6,LINETHICK0;
    多头绝对:20,LINETHICK1,color00aaaa,POINTDOT;
    空头绝对:-20,LINETHICK1,color00aa00,POINTDOT;

    STICKLINE(vur6>0,0 ,vur6*1.2,8,0 ),COLOR00AADD;
    STICKLINE(vur6>0,0 ,vur6*0.8,8,0 ),COLOR0099DD;
    STICKLINE(vur6>0,0 ,vur6*0.6,8,0 ),COLOR0066DD;
    STICKLINE(vur6>0,0 ,vur6*0.4,8,0 ),COLOR0033DD;
    STICKLINE(vur6>0,0 ,vur6*0.2,8,0 ),COLOR0000DD;

    STICKLINE(vur6<0,0 ,vur6*1.2,8,0 ),COLORAADD00;
    STICKLINE(vur6<0,0 ,vur6*0.8,8,0 ),COLOR99DD00;
    STICKLINE(vur6<0,0 ,vur6*0.6,8,0 ),COLOR66DD00;
    STICKLINE(vur6<0,0 ,vur6*0.4,8,0 ),COLOR33DD00;
    STICKLINE(vur6<0,0 ,vur6*0.2,8,0 ),COLOR00DD00;

    {
    较强■:STICKLINE(VurD>0,0,VurD,7,0),colorBB22EE;
    超强■:STICKLINE(Vur5>0,0,Vur5,7,0),COLOR00CCCC;
    极强■:STICKLINE(Vur6>0,0,Vur6,7,0),COLOR0000CC;

    较弱■:STICKLINE(VurD<0,0,VurD,7,0),colorFFAAAA;
    超弱■:STICKLINE(Vur5<0,0,Vur5,7,0),color00DD00;
    极弱■:STICKLINE(Vur6<0,0,Vur6,7,0),colorAAAA10;
    };

    Vur1:=VOL/CAPITAL;
    Vur2:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);
    Vur3:=2.5*MAX(Vur1,Vur2);
    Vur4:=DMA(CLOSE,Vur3);
    Vur5:=20*(Vur4/REF(Vur4,1)-1)*38;
    Vur6:=EMA(Vur5,2);
    Vur7:=EMA(Vur5,2);
    Vur8:=EMA(Vur7,3);
    VurS:=EMA(Vur7,8);
    Vur9:=1.1*(MAX(INDEXH,REF(INDEXC,1))/MIN(INDEXL,REF(INDEXC,1))-1);
    VurA:=2.5*MAX(Vur1,Vur9);
    VurB:=DMA(INDEXC,VurA);
    VurC:=EMA(20*(VurB/REF(VurB,1)-1),1)*38;
    VurD:=EMA(VurC,2);
    VurE:=EMA(VurC,2);
    主力:vur6,LINETHICK0;
    多头绝对:20,LINETHICK1,color00aaaa,POINTDOT;
    空头绝对:-20,LINETHICK1,color00aa00,POINTDOT;

    STICKLINE(vur6>0,0 ,vur6*1.2,8,0 ),COLOR00AADD;
    STICKLINE(vur6>0,0 ,vur6*0.8,8,0 ),COLOR0099DD;
    STICKLINE(vur6>0,0 ,vur6*0.6,8,0 ),COLOR0066DD;
    STICKLINE(vur6>0,0 ,vur6*0.4,8,0 ),COLOR0033DD;
    STICKLINE(vur6>0,0 ,vur6*0.2,8,0 ),COLOR0000DD;

    STICKLINE(vur6<0,0 ,vur6*1.2,8,0 ),COLORAADD00;
    STICKLINE(vur6<0,0 ,vur6*0.8,8,0 ),COLOR99DD00;
    STICKLINE(vur6<0,0 ,vur6*0.6,8,0 ),COLOR66DD00;
    STICKLINE(vur6<0,0 ,vur6*0.4,8,0 ),COLOR33DD00;
    STICKLINE(vur6<0,0 ,vur6*0.2,8,0 ),COLOR00DD00;

    STICKLINE(VurD>0,0,VurD,7,0),colorBB22EE;
    STICKLINE(Vur5>0,0,Vur5,7,0),COLOR00CCCC;
    STICKLINE(Vur6>0,0,Vur6,7,0),COLOR0000CC;

    STICKLINE(VurD<0,0,VurD,7,0),colorFFAAAA;
    STICKLINE(Vur5<0,0,Vur5,7,0),color00DD00;
    STICKLINE(Vur6<0,0,Vur6,7,0),colorAAAA10;

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 改主力交锋指标 加入收藏