最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信量价之王指标公式(通达信量价指标公式)

    正文概述    2024-05-04 04:14:38  


    通达信公式源码概况:


    指标类别:通达信公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    一、通达信量价之王指标公式

     

    MA5:EMA(CLOSE,5),COLORWHITE; 

    MA10:EMA(CLOSE,10),COLORYELLOW; 

    MA20:EMA(CLOSE,20),COLORFF00FF; 

    MA40:EMA(CLOSE,40),COLOR00FF00; 

    MA60:EMA(C,60),COLOR888888; 

    MA250:EMA(C,250),COLORFFCC66; 

    月价托:=MA5 MA20ANDMA5 MA10ANDCROSS(MA10,MA20); 

    季价托:=MA20 MA60ANDMA20 MA40ANDCROSS(MA40,MA60); 

    短长价托:=MA5 MA60ANDMA5 MA10ANDCROSS(MA10,MA60); 

    DRAWICON(月价托,L-0.10,3); 

    DRAWICON(季价托,L-0.10,4); 

    DRAWICON(短长价托,L-0.10,5); 

    5:=MA(VOL,5); 

    VOL10:=MA(VOL,10); 

    VOL20:=MA(VOL,20); 

    量托:=VOL5 =VOL20ANDCROSS(VOL10,VOL20)ANDREF(VOL10,1) REF(VOL20,1); 

    DRAWICON(量托,L-0.10,6); 

    AA:=BARSLAST(MA40 MA60AND(MA20=MA40ORMA20 MA40)); 

    BB:=REF(COUNT(C MA60,AA)=AA,1); 

    CC:=CROSS(C,MA60)ANDVOL MA(VOL,5)AND(C-REF(C,1))/REF(C,1)*100 3; 

    芙蓉出水:=BBANDCC; 

    DRAWICON(芙蓉出水,L-0.10,1); 

    STICKLINE(C REF(C,1),H,L,0,1),COLOR0000FF; 

    STICKLINE(C REF(C,1),O,C,3.2,0),COLOR000055; 

    STICKLINE(C REF(C,1),O,C,2.7,0),COLOR000077; 

    STICKLINE(C REF(C,1),O,C,2.1,0),COLOR000099; 

    STICKLINE(C REF(C,1),O,C,1.5,0),COLOR0000BB; 

    STICKLINE(C REF(C,1),O,C,0.9,0),COLOR0000DD; 

    STICKLINE(C REF(C,1),O,C,0.3,0),COLOR0000FF; 

    STICKLINE(C REF(C,1),H,L,0,1),COLORFFFF00; 

    STICKLINE(C REF(C,1),O,C,3.2,0),COLOR990000; 

    STICKLINE(C REF(C,1),O,C,2.7,0),COLORCC0000; 

    STICKLINE(C REF(C,1),O,C,2.1,0),COLORFF4400; 

    STICKLINE(C REF(C,1),O,C,1.5,0),COLORFF8800; 

    STICKLINE(C REF(C,1),O,C,0.9,0),COLORFFCC00; 

    STICKLINE(C REF(C,1),O,C,0.3,0),COLORFFFF00; 

    STICKLINE(C=REF(C,1),H,L,0,1),COLORFFFFFF; 

    STICKLINE(C=REF(C,1),O,C,3.2,0),COLOR555555; 

    STICKLINE(C=REF(C,1),O,C,2.7,0),COLOR777777; 

    STICKLINE(C=REF(C,1),O,C,2.1,0),COLOR999999; 

    STICKLINE(C=REF(C,1),O,C,1.5,0),COLORBBBBBB; 

    STICKLINE(C=REF(C,1),O,C,0.9,0),COLORDDDDDD; 

    STICKLINE(C=REF(C,1),O,C,0.3,0),COLORFFFFFF; 

    DRAWGBK(C 0,COLORRGB(10,160,0),COLORRGB(25,15,0),70); 

    MAA:=MA( CLOSE , 5) ; 

    A:=AMOUNT / (100 * VOL);【5】:MA(A,5),linethick0,color00FFFF; 

    加权移平均:=wma(【5】,5); 

    jnyy:=dma(c,vol/capital); 

    個z:=EMA(jnyy,3); 

    十z:=EMA(jnyy,5); 

    百z:=EMA(jnyy,7); 

    千z:=EMA(jnyy,9); 

    万z:=EMA(jnyy,11); 

    PARTLINE(個z REF(個z,1),個z),linedot,COLORFFAA11,linethick1; 

    PARTLINE(十z REF(十z,1),十z),linedot,COLORFFBB22,linethick1; 

    PARTLINE(百z REF(百z,1),百z),linedot,COLORFFCC33,linethick1; 

    PARTLINE(千z REF(千z,1),千z),linedot,COLORFFDD44,linethick1; 

    PARTLINE(万z REF(万z,1),万z),linedot,COLORFFEE55,linethick1; 

    PARTLINE(個z REF(個z,1),個z),linedot,COLORff00ff,linethick1; 

    PARTLINE(十z REF(十z,1),十z),linedot,COLORff99ff,linethick1; 

    PARTLINE(百z REF(百z,1),百z),linedot,COLORff88ff,linethick1; 

    PARTLINE(千z REF(千z,1),千z),linedot,COLORff77ff,linethick1; 

    PARTLINE(万z REF(万z,1),万z),linedot,COLORff66ff,linethick1; 

    個:=EMA(MAA,2);十:=EMA(MAA,4) ;百:=EMA(MAA,6);千:=EMA(MAA,8);万:=EMA(MAA,10); 

    PARTLINE(個 REF(個,1),個),LINEDOT,COLOR00AA00,linethick1; 

    PARTLINE(十 REF(十,1),十),LINEDOT,COLOR00BB00,linethick1; 

    PARTLINE(百 REF(百,1),百),LINEDOT,COLOR00CC00,linethick1; 

    PARTLINE(千 REF(千,1),千),LINEDOT,COLOR00DD00,linethick1; 

    PARTLINE(万 REF(万,1),万),LINEDOT,COLOR00EE00,linethick1; 

    PARTLINE(個 REF(個,1),個),LINEDOT,COLOR0000AA,linethick1; 

    PARTLINE(十 REF(十,1),十),LINEDOT,COLOR0000BB,linethick1; 

    PARTLINE(百 REF(百,1),百),LINEDOT,COLOR0000CC,linethick1; 

    PARTLINE(千 REF(千,1),千),LINEDOT,COLOR0000DD,linethick1; 

    PARTLINE(万 REF(万,1),万),LINEDOT,COLOR0000EE,linethick1; 

    {阳线上下影}STICKLINE(CLOSE =OPEN,C,H,0,0), color0000ff; 

    STICKLINE(CLOSE =OPEN,O,L,0,0),  color0000ff; 

    STICKLINE((CLOSE OPEN),OPEN,CLOSE,8,0),color0000FF; 

    STICKLINE((CLOSE OPEN),OPEN,CLOSE,6,0),color0099FF; 

    STICKLINE((CLOSE OPEN),OPEN,CLOSE,4,0),color00CCFF; 

    STICKLINE((CLOSE OPEN),OPEN,CLOSE,2,0),color00FFFF; 

    {阴线上下影}STICKLINE(CLOSE OPEN,O,H,0,0), ColorFFFF66; 

    STICKLINE(CLOSE OPEN,C,L,0,0), ColorFFFF66; 

    STICKLINE((CLOSE = OPEN),CLOSE,OPEN,8,0),colorCC0033; 

    STICKLINE((CLOSE = OPEN),CLOSE,OPEN,6,0),colorFF9966; 

    STICKLINE((CLOSE = OPEN),CLOSE,OPEN,4,0),colorFFCC66; 

    {量价增减} 

    input:k(3,0,50); 

    DRAWGBKlast(DATE 900101,strip(RGB(40,0,40),RGB(0,0,0),0));0,ColorFF9900; 

    JV:=(V-REF(V,1))/REF(V,1)*100; 

    JVH:=EMA(SUM(JV,k),k); 

    PARTLINE(JVH,(JVH REF(JVH,1))-1,rgb(0,255,0),1,rgb(255,0,0)),LINETHICK2,LAYER4; 

    DRAWTEXT(BARSTATUS=2,0,   换手: ),ALIGN0,COLOR00ffFF,LINETHICK2,LAYER0; 

    X:=BARSLAST(DISPSTATUS=1)+1; 

    ahx:=hhvall(hhv(JVH,X)); 

    VERTLINE(JVH=ahx,4),COLOR00FFFF,LAYER0; 

    STICKLINE(JV 0,JV,0,5,0),Color000055,LAYER7; 

    STICKLINE(JV 0,JV,0,4,0),Color000077,LAYER7; 

    STICKLINE(JV 0,JV,0,3,0),Color000099,LAYER7; 

    STICKLINE(JV 0,JV,0,2,0),Color0000CC,LAYER7; 

    STICKLINE(JV 0,JV,0,1,0),Color0000FF,LAYER7; 

    STICKLINE(JV 0,JV,0,5,0),Color005500,LAYER7; 

    STICKLINE(JV 0,JV,0,4,0),Color007700,LAYER7; 

    STICKLINE(JV 0,JV,0,3,0),Color009900,LAYER7; 

    STICKLINE(JV 0,JV,0,2,0),Color00CC00,LAYER7; 

    HS:=vol/capital*100; 

    DRAWTEXT(JVandHS 2,-10, +NUMTOSTRN(HS,0)+ ),ALIGN1,color00FFff,linethick1,LAYER5; 

    IF(BARSTATUS=2andc 200andHS)THEN 

    DRAWTEXTABS(450,5, ■可视 +NUMTOSTRN(X,0)+ 天累计换手 +NUMTOSTRN(SUM(HS,X),1)+ %,平均换手 +NUMTOSTRN(SUM(HS,X)/X,1)+ %: ),COLOR00ffFF,LINETHICK3; 

    DRAWRECTABS(3,0,315,150,rgb(0,0,80)),color00FFFF,LINETHICK2,LAYER0; 

    W1:=IF((V-REF(V,1)) 0  ANDABS(C-REF(C,1))/REF(C,1)*100 0.1,1,0); 

    IF(BARSTATUS=2andc 200andW1)THEN 

    DRAWTEXTABS(0,5, ◢ +W1+ ◣ ),color0000FF,LINETHICK2,LAYER0; 

    DRAWTEXTABS(0,5,       【加仓】:--1.量增价平,转阳信号。 ),color0000FF,LINETHICK2,LAYER0; 

    W2:=IF((V-REF(V,1)) 0and(C-REF(C,1)) 0,2,0); 

    IF(BARSTATUS=2andc 200andW2)THEN 

    DRAWTEXTABS(0,22, ◢ +W2+ ◣ ),color0055FF,LINETHICK2,LAYER0; 

    DRAWTEXTABS(0,22,       【买入】:--2.量增价升,买入信号。 ),color0055FF,LINETHICK2,LAYER0; 

    W3:=IF(ABS(V-REF(V,1))/REF(V,1)*100 0.1and(C-REF(C,1)) 0,3,0); 

    IF(BARSTATUS=2andc 200andW3)THEN 

    DRAWTEXTABS(0,39, ◢ +W3+ ◣ ),color0077FF,LINETHICK2; 

    DRAWTEXTABS(0,39,       【加仓】:--3.量平价升,持续买入。 ),color0077FF,LINETHICK2,LAYER0; 

    W4:=IF((V-REF(V,1)) 0  and(C-REF(C,1)) 0,4,0); 

    IF(BARSTATUS=2andc 200andW4)THEN 

    DRAWTEXTABS(0,56, ◢ +W4+ ◣ ),color0099FF,LINETHICK2; 

    DRAWTEXTABS(0,56,       【持有】:--4.量减价升,继续持有。 ),color0099FF,LINETHICK2,LAYER0; 

    W5:=IF((V-REF(V,1)) 0ANDABS(C-REF(C,1))/REF(C,1)*100 0.1,5,0); 

    IF(BARSTATUS=2andc 200andW5)THEN 

    DRAWTEXTABS(0,76, ◢ +W5+ ◣ ),color00FF00,LINETHICK2,LAYER0; 

    DRAWTEXTABS(0,76,       【警戒】:--5.量减价平,警戒信号。 ),color00FF00,LINETHICK2,LAYER0; 

    W6:=IF((V-REF(V,1)) 0and(C-REF(C,1)) 0,6,0); 

    IF(BARSTATUS=2andc 200andW6)THEN 

    DRAWTEXTABS(0,93, ◢ +W6+ ◣ ),colorFFDD00,LINETHICK2,LAYER0; 

    DRAWTEXTABS(0,93,       【卖出】:--6.量减价跌,卖出信号。 ),colorFFDD00,LINETHICK2,LAYER0; 

    W7:=IF(ABS(V-REF(V,1))/REF(V,1)*100 0.1  and(C-REF(C,1)) 0,7,0); 

    IF(BARSTATUS=2andc 200andW7)THEN 

    DRAWTEXTABS(0,110, ◢ +W7+ ◣ ),colorFFCC00,LINETHICK2,LAYER0; 

    DRAWTEXTABS(0,110,       【卖出】:--7.量平价跌,继续卖出。 ),colorFFCC00,LINETHICK2,LAYER0; 

    W8:=IF((V-REF(V,1)) 0and(C-REF(C,1)) 0,8,0); 

    IF(BARSTATUS=2andc 200andW8)THEN 

    DRAWTEXTABS(0,127, ◢ +W8+ ◣ ),colorFF9900,LINETHICK2,LAYER0; 

    DRAWTEXTABS(0,127,       【观望】:--8.量增价跌,弃卖观望。 ),colorFF9900,LINETHICK2,LAYER0; 

    MV5:=EMA(V,5); 

    MA5:=EMA(C,5); 

    MV5角度:=ATAN((MV5/REF(MV5,1)-1)*100)*180/3.1416; 

    MA5角度:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416; 

    QSXS:=MA5角度 REF(MA5角度,1)ANDMV5角度 80; 

    ∠45↑:IF(CROSS(MA5角度,30)ANDQSXS,1,0);

    公式解读:

    公式解读:


    每日通达信公式解答:


     

    编写条件: 

    指标的DIF线反弹0轴的公式(macd数值在±0.1之间)。 

    编写方法: 

    DIF:= macd.DIF  

    MacD:= maCD.MACD  

    XG:Abs(MACD) =0.1ANDcrOSS(DIF,0);


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信量价之王指标公式(通达信量价指标公式) 加入收藏