之前有人帮改过,A1:=backset(barstatus无法通过........
INPUT: 起点(50,1,9999,1),终点(2,0,9999,1);
A1:=backset(barstatus=2,起点);
A2:=backset(barstatus=2,终点);
H1:VERTLINE(CROSS(A1 ,0.5 ) , 1),Color000fff;
H2:VERTLINE(CROSS(A2 ,0.5 ) , 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;
斜率:=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(a5,C ,a6 AND CROSS(A2 ,0.5 ) ,C,0),Color000fff,linethick2;
DRAWTEXTABS(250,10,'斜率:'+NUMTOSTRN(斜率,2)),Color000fff,linethick5;
DRAWTEXT(斜率>=60 AND CROSS(A2 ,0.5 ),H*1.01 ,'强势暴涨' );
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 ,'弱势大跌' );
高手请进改成通达信公式
答案:2 悬赏:70 手机版
解决时间 2021-12-17 02:49
- 提问者网友:
- 2021-12-16 14:15
最佳答案
- 五星知识达人网友:寄你情深
- 2021-12-16 14:56
起点:=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 ,'弱势大跌' );
终点:=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 ,'弱势大跌' );
全部回答
- 1楼网友:萝莉收纳盒
- 2021-12-16 15:08
按你的要求是选不出股,,错误,收盘价处于5日线之上 当日最低价为5日线。条件不成人立
c>ma(c,5) and c<ma(c,10) and
hhv(high,1) =ma(c,10) and llv(l,1)=ma(c,5) ;
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯