王家肉肉农场(评论里留言优先回赞
2024-06-29 13:13:59
最佳回答
起点:=50;终点:=2;a1:=backset(barstatus=2,起点); a2:=backset(barstatus=2,终点); h1:stickline(cross(a1 ,0.5 ),hhv(30,h),0,0,0),color000fff;h2:stickline(cross(a2 ,0.5 ),hhv(30,h),0,0,0),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;斜率:=atan(幅度/((起点-终点) ))*180/3.1416;斜边:=sqrt(pow(幅度 ,2 )+pow(起点-终点 ,2 ) );伸长:=sum(幅度 ,0 );震荡率:=伸长/斜边;强势暴涨:=斜率>60 ;b1:=ref(h ,barslast(cross(起点+(起点-终点)/2 ,0.5 ) ) );a5:=backset(barstatus=2,起点);a6:=backset(barstatus=2,终点);drawline(cross(a1 ,0.5 ),c ,a6 and cross(a2 ,0.5 ) ,c,0),color000fff,linethick2;drawtext_fix(currbarscount=1,0.8,0.05,1,'斜率'),linethick2,color00ffff;drawnumber_fix(currbarscount=1,0.84,0.05,1,斜率);drawtext(斜率>=60 and cross(a2 ,0.5 ),l*0.99 ,'强势暴涨' );drawtext(斜率>=45 and 斜率<60 and cross(a2 ,0.5 ),h*1.01 ,'强势大涨' );drawtext(斜率<=-40 and cross(a2 ,0.5 ),h*1.01 ,'弱势暴跌' );drawtext(斜率<=-20 and 斜率>-40 and cross(a2 ,0.5 ),h*1.01 ,'弱势大跌' ); 20210311