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

    正文概述    2024-04-13 15:39:54  

    LR:=36;
    B:=13;
    N:=100;
    UR:=5;
    SHORT:=21;
    LONG:=44;
    MIDD:=11;
    M:=11;
    {kdj的macd}
    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    J:=3*K-2*D;
    DIFF:EMA(J,8) - EMA(J,16),COLOR0044FF;
    DEA:EMA(DIFF,5),COLOR00FF00;
    DRAWBAND(DIFF,RGB(255,80,0),DEA,RGB(0,255,100));
    MacD:2*(DIFF-DEA), COLORSTICK;
    0,COLORFF9900,DOTLINE;
    {卖}
    KC:=FORCAST(((2*C+H+L)/4*0.618+C*0.382),3);
    AAX:=(KC-MA(KC,9))/MA(KC,9)*100;
    VAR0:=MIN(EXIST(KC,55),9);
    AAX1:=EMA(AAX,VAR0)*VAR0;
    AAX2:=MA(AAX1,3);
    AAX3:=MA(AAX1,5);
    DRAWTEXT(AAX3>10 AND AAX1 DRAWTEXT(AAX3>10 AND AAX1 DRAWTEXT_FIX(1,0.02,0,0,'■现在kdJ的参数是:N=9,M1=3,M2=3;'),COLOR0000FF;
    DRAWTEXT_FIX(1,0.02,0.1,0,'■【KDJ】的【MACD】的参数是:LONG=8,LONG=16,M=5;'),COLOR00FF00;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信MACD结合KDJ指标公式 加入收藏