通达信斜率观测器指标公式
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
起点:=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 ,'弱势大跌' );
选股票看什么指标最好 >股票指标网
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
起点:=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 ,'弱势大跌' );
选股票看什么指标最好 >股票指标网
精彩评论