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

    正文概述    2024-04-13 15:29:05  

    起点:=50;
    终点:=2;
    调节起点:CURRBARSCOUNT,NODRAW;
    A1:=BacKSET(BARSTATUS=2,起点);
    A2:=BACKSET(BARSTATUS=2,终点);
    H1:STICKLINE(crOSS(A1 ,0.5 ),REFDATE(HHV(H,120),DATE),REFDATE(LLV(L,120),DATE),0,-1),COLOR000FFF;
    H2:STICKLINE(CROSS(A2 ,0.5 ),REFDATE(HHV(H,120),DATE),REFDATE(LLV(L,120),DATE),0,-1),COLOR00FF00;
    {幅度:=(C-REF(C ,BArslAST( CROSS(A1 ,0.5 )) ))/REF(C ,BARSLAST( CROSS(A1 ,0.5 )) )*100;}
    幅度:(REF(C ,BARSLAST( CROSS(A2 ,0.5 )) )-REF(C ,BARSLAST( CROSS(A1 ,0.5 )) ))/REF(C ,BARSLAST( CROSS(A1 ,0.5 )) )*100,NODRAW;
    斜率:ATAN(幅度/((起点-终点) ))*180/3.1416,NODRAW;
    DRAWLINE(CROSS(A1 ,0.5 ),C ,CROSS(A2 ,0.5 ) ,C,0),COLORFFFFFF;
    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.95,0.025,1,STRCAT('斜率:', CON2STR(斜率,2))),COLORFFFFFF;
    DRAWTEXT(斜率>=60 AND CROSS(A2 ,0.5 ),L*0.98,'强势暴涨' );
    DRAWTEXT(斜率>=45 AND 斜率<60 AND CROSS(A2 ,0.5 ),L*0.998,'强势大涨' );
    DRAWTEXT(斜率<=-40 AND CROSS(A2 ,0.5 ),H*1.01 ,'弱势暴跌' );
    DRAWTEXT(斜率<=-20 AND 斜率>-40 AND CROSS(A2 ,0.5 ),H*1.01 ,'弱势大跌' );


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信斜率观测器指标公式 加入收藏