通达信斜率观测器指标公式

起点:=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 ,'弱势大跌' );

通达信斜率观测器指标公式

 

大智慧策略终端/职业股民首选分析软件:支持ACE数据,支持L2行情全推数据,支持股票池,超赢数据,价格低廉,支持月季费年费。:

下载地址:https://share.weiyun.com/LPoU0GHu