最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • MA涨跌主图指标改成同花顺的

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

    九毛八公式指标

    公式模块:

    请老师把这个MA涨跌主图指标改成同花顺的,谢谢

    MA1:MA(CLOSE,M1);
    MA2:MA(CLOSE,M2);
    MA3:MA(CLOSE,M3);
    MA4:MA(CLOSE,M4);
    涨家数:INDEXADV,NODRAW,COLORRED;
    跌家数:INDEXDEC,NODRAW,COLORGREEN;
    ZT:=C/REF(C,1)>1.097;
    ZTBPJ:=REF(C,BArslAST(ZT)+1)*0.98;{涨停不破价}
    ZTBP:=BARSLAST(ZT)<30 AND (LLV(C,BARSLAST(ZT))>=ZTBPJ OR
    LLV(C,BARSLAST(ZT))=ZTBPJ);{涨停不破}
    STICKLINE(ZTBP,REF(C,BARSLAST(ZT))-REF(C,BARSLAST(ZT))*0.001,
    REF(C,BARSLAST(ZT)),1,0),COLORMAGENTA;
    STICKLINE(ZTBP,REF(L,BARSLAST(ZT))-REF(L,BARSLAST(ZT))*0.001,
    REF(L,BARSLAST(ZT)),1,0),COLORMAGENTA;
    J1:=V>REF(V,1);
    J2:=V<REF(V,1);
    J3:=C>REF(C,1);
    T:=DYNAINFO(8)>0;
    VO:=vol=LLV(VOL,60) AND T;
    VP:=VOL=HHV(VOL,60) AND T;
    地量柱:=T AND VO AND C>REF(C,1);
    高量柱:=T AND VP AND C>REF(C,1);
    倍量柱:=V>REF(V,1)*1.9 AND C>REF(C,1);
    递量柱:=V>REF(V,1) AND V<REF(V,1)*1.9;
    平量柱:=V>REF(V,1)*0.98 AND V<REF(V,1)*1.02;
    黄金柱1:=REF(倍量柱,3) AND EVERY(J1,3) AND EVERY(J3,3);
    DRAWTEXT(黄金柱1,L*0.995,'倍'),COLORYELLOW;{倍量柱+三日递量柱价升=黄金柱}
    黄金柱2:=REF(倍量柱,3) AND EVERY(J2,3) AND EVERY(J3,3);
    DRAWTEXT(黄金柱2,L*0.995,'背'),COLORYELLOW;{倍量柱+三日缩量柱价升=黄金柱}
    黄金柱3:=REF(地量柱,3) AND EVERY(J1,3) AND EVERY(J3,3);
    DRAWTEXT(黄金柱3,L*0.995,'地'),COLORBLUE;{地量柱+三日递量柱价升=黄金柱};
    黄金柱4:=REF(高量柱,3) AND EVERY(J2,3) AND EVERY(J3,3);
    DRAWTEXT(黄金柱4,L*0.995,'高'),COLORMAGENTA;{高量柱+三日缩量柱价升=黄金柱};
    黄金柱5:=REF(递量柱,3) AND EVERY(J2,3) AND EVERY(J3,3);
    DRAWTEXT(黄金柱5,L*0.97,'递'),COLORRED;{递量柱+三日缩量柱价升=黄金柱};
    DRAWTEXT(平量柱,L*0.995,'平'),COLORGREEN;{递量柱+三日缩量柱价升=黄金柱};
    缩倍:=H>L AND REF(C,1)>REF(O,1) AND REF(V,1)>V*1.9 AND REF(ZT,2);
    DRAWTEXT(缩倍,L*0.97,'缩'),COLORRED;{立桩柱+梯量柱+缩倍量=黄金柱};
    STICKLINE(缩倍,O,C,2,0),COLORMAGENTA;
    DRAWICON(缩倍,LOW*0.96,25);
    RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
    K:=SMA(RSV,N1,1);
    D:=SMA(K,N2,1);
    J:=3*K-2*D;
    DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
    DEA:=EMA(DIF,MID);
    macd:=(DIF-DEA)*2;
    AB:=MacD>REF(MACD,1);
    VAR1:=(3*C+O+H+L)/6;
    慢牛线:=EMA(3*VAR1-2*SMA(VAR1,2,1),8);
    昨阳出绿:=C>O AND C<慢牛线;
    追涨停:=C>=慢牛线 AND REF(C,1)<REF(慢牛线,1) AND REF(昨阳出绿,1) AND AB AND crOSS(K,D);
    DRAWICON(追涨停,L*0.98,7);

    m1:=5;m2:=10;m3=30;m4:=60;n:=8;n1:=3;n2:=3;SHORT:=12;LONG:=26;MID:=9;
    MA1:MA(CLOSE,M1);
    MA2:MA(CLOSE,M2);
    MA3:MA(CLOSE,M3);
    MA4:MA(CLOSE,M4);
    ZT:=C/REF(C,1)>1.097;
    ZTBPJ:=REF(C,BARSLAST(ZT)+1)*0.98;
    ZTBP:=BARSLAST(ZT)<30 AND (LLV(C,BARSLAST(ZT))>=ZTBPJ OR
    LLV(C,BARSLAST(ZT))=ZTBPJ);
    STICKLINE(ZTBP,REF(C,BARSLAST(ZT))-REF(C,BARSLAST(ZT))*0.001,REF(C,BARSLAST(ZT)),4,0),colormagenta;
    STICKLINE(ZTBP,REF(L,BARSLAST(ZT))-REF(L,BARSLAST(ZT))*0.001,REF(L,BARSLAST(ZT)),4,0),colormagenta;
    J1:=V>REF(V,1);
    J2:=V<REF(V,1);
    J3:=C>REF(C,1);
    T:=V>0;
    VO:=VOL=LLV(VOL,60) AND T;
    VP:=VOL=HHV(VOL,60) AND T;
    地量柱:=T AND VO AND C>REF(C,1);
    高量柱:=T AND VP AND C>REF(C,1);
    倍量柱:=V>REF(V,1)*1.9 AND C>REF(C,1);
    递量柱:=V>REF(V,1) AND V<REF(V,1)*1.9;
    平量柱:=V>REF(V,1)*0.98 AND V<REF(V,1)*1.02;
    黄金柱1:=REF(倍量柱,3) AND COUNT(J1,3)=3 AND COUNT(J3,3)=3;
    DRAWTEXT(黄金柱1,L*0.995,'倍'),coloryellow;//{倍量柱+三日递量柱价升=黄金柱}
    黄金柱2:=REF(倍量柱,3) AND COUNT(J2,3)=3 AND COUNT(J3,3)=3;
    DRAWTEXT(黄金柱2,L*0.995,'背'),coloryellow;//{倍量柱+三日缩量柱价升=黄金柱}
    黄金柱3:=REF(地量柱,3) AND COUNT(J1,3)=3 AND COUNT(J3,3)=3;
    DRAWTEXT(黄金柱3,L*0.995,'地'),colorblue;//{地量柱+三日递量柱价升=黄金柱};
    黄金柱4:=REF(高量柱,3) AND COUNT(J2,3)=3 AND COUNT(J3,3)=3;
    DRAWTEXT(黄金柱4,L*0.995,'高'),colormagenta;//{高量柱+三日缩量柱价升=黄金柱};
    黄金柱5:=REF(递量柱,3) AND COUNT(J2,3)=3 AND COUNT(J3,3)=3;
    DRAWTEXT(黄金柱5,L*0.97,'递'),colorred;//{递量柱+三日缩量柱价升=黄金柱};
    DRAWTEXT(平量柱,L*0.995,'平'),colorgreen;//{递量柱+三日缩量柱价升=黄金柱};
    缩倍:=H>L AND REF(C,1)>REF(O,1) AND REF(V,1)>V*1.9 AND REF(ZT,2);
    DRAWTEXT(缩倍,L*0.97,'缩'),colorred;//{立桩柱+梯量柱+缩倍量=黄金柱};
    STICKLINE(缩倍,O,C,9,0),colormagenta;
    DRAWICON(缩倍,LOW*0.96,7);
    RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
    K:=SMA(RSV,N1,1);
    D:=SMA(K,N2,1);
    J:=3*K-2*D;
    DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
    DEA:=EMA(DIF,MID);
    MACD:=(DIF-DEA)*2;
    AB:=MACD>REF(MACD,1);
    VAR1:=(3*C+O+H+L)/6;
    慢牛线:=EMA(3*VAR1-2*SMA(VAR1,2,1),8);
    昨阳出绿:=C>O AND C<慢牛线;
    追涨停:=C>=慢牛线 AND REF(C,1)<REF(慢牛线,1) AND REF(昨阳出绿,1) AND AB AND CROSS(K,D);
    DRAWICON(追涨停,L*0.98,'buy');

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » MA涨跌主图指标改成同花顺的 加入收藏