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

    正文概述    2024-04-14 15:14:01  

    名称:MACD.MA主图
    源码:
    MA1:MA(CLOSE,5);
    MA2:MA(CLOSE,10);
    MA3:MA(CLOSE,30);
    MA4:MA(CLOSE,60),COLORBLUE;
    DE:=CONST(LLV(L,90));
    JI:=CONST(HHV(H,90))-DE;
    DE_K:=DE+JI/3*2;
    JI_K:=JI/2;
    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    DE_A:=CONST(LLV(RSV,90));
    DD_A:=CONST(HHV(RSV,90))-DE_A;
    R:=(RSV-DE_A)/DD_A;
    RSV1:=R*JI_K+DE_K;
    DE_M:=DE+JI/3;
    JI_M:=JI/2;
    KDL:=CONST(LLV(EMA(C,26),90));
    KDH:=CONST(HHV(EMA(C,26),90))-KDL;
    R_K1:=(EMA(C,12)-KDL)/KDH;
    R_K2:=(EMA(C,26)-KDL)/KDH;
    DIF~:(R_K1-R_K2)*JI*1.5+DE_M,COLORGREEN;
    DEA~:EMA(DIF~,9),COLORRED;
    MACD~:=(DIF~-DEA~)*2+DE_M;
    STICKLINE(MACD~>=DE_M,MACD~,DE_M,0,0),COLORRED;
    D_1:=MACD~>H AND H>=DE_M AND DE_M>=L;
    D_2:=MACD~>H AND H>=L AND L>DE_M;
    D_3:=H>MACD~ AND MACD~>=L AND L>DE_M;
    D_4:=H>MACD~ AND MACD~>DE_M AND DE_M>=L;
    STICKLINE(D_1>0,H,DE_M,0,0),COLORYELLOW;
    STICKLINE(D_2,H,L,0,0),COLORYELLOW;
    STICKLINE(D_3,MACD~,L,0,0),COLORYELLOW;
    STICKLINE(D_4,MACD~,DE_M,0,0),COLORYELLOW;
    D_5:=MACD~ D_6:=MACD~ D_7:=L D_8:=L STICKLINE(MACD~ STICKLINE(D_5,DE_M,L,0,0),COLORYELLOW;
    STICKLINE(D_6,H,L,0,0),COLORYELLOW;
    STICKLINE(D_7,H,MACD~,0,0),COLORYELLOW;
    STICKLINE(D_8,DE_M,MACD~,0,0),COLORYELLOW;
     

     


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信MACD主图公式源码 加入收藏