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

    正文概述    2024-04-13 13:40:34  

    源码

    N1:=4;N2:=8;N3:=16;M:=6;N:=34;

    HH:=MAX(HIGH,REF(CLOSE,1));
    LL:=MIN(LOW,REF(CLOSE,1));
    AA:=SUM(CLOSE-LL,N1)/SUM(HH-LL,N1);
    BB:=SUM(CLOSE-LL,N2)/SUM(HH-LL,N2);
    CC:=SUM(CLOSE-LL,N3)/SUM(HH-LL,N3);
    B:(AA/N1+BB/N2+CC/N3)*N1*N2*N3/(N1*N2+N2*N3+N1*N3)*100,COLORRED,LINETHICK2;
    S:EMA(B,M),COLORCYAN,LINETHICK2;
    {DRAWGBKLAST(V>1,STRIP(RGB(0,0,0),RGB(90,90,90),0));}
    SAT:=(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N));
    饱和度:IF(SAT>1,1,SAT)*100;
    量能≤5:STICKLINE(饱和度<=5,5,饱和度+20,4,0),COLORWHITE;
    量能5~80:STICKLINE((饱和度>5 AND 饱和度< 80),5,饱和度+8,4,0),COLOR5290FF;
    量能80~97:STICKLINE((饱和度>80 AND 饱和度< 97),5,饱和度,4,0),COLORRED;
    量能≥97:STICKLINE(饱和度>=97,5,饱和度,4,0),COLORYELLOW;
    {IF BARSTATUS=2 AND (饱和度) THEN BEGIN DRAWTEXTREL(0,100,'饱和度:'+NUMTOSTRN(饱和度,2)),LINETHICK6,COLORCCFFCC;END;
    DIFF : (EMA(CLOSE,9) - EMA(CLOSE,17))*50,COLORRED;};
     


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信量能饱和公式 加入收藏