平行线绘制

01-23 10:16发布

B:=AR62

BB:=BACKSET(ISLASTBAR,SUMBARS(B,2));
DRAWLINE1(B&&BB,L,B,L,1),COLORRED,DOT,COLORYELLOW; 老师.画这条连线二点之间最高价的平行线.二点之间最低价的平行线.怎么写

B:=AR62
BB:=BACKSET(ISLASTBAR,SUMBARS(B,2));
DRAWLINE1(B&&BB,L,B,L,1),COLORRED,DOT,COLORYELLOW; 老师.画这条连线二点之间最高价的平行线.二点之间最低价的平行线.怎么写
付费偷看设置
发送
9条回答
文华解答
2楼-- · 01-23 11:20
参考;

B:=AR62
BB:=BACKSET(ISLASTBAR,SUMBARS(B,2));
BB1:=BACKSET(ISLASTBAR,SUMBARS(B,1));
DRAWLINE1(B&&BB,L,B,L,1),COLORRED,DOT,COLORYELLOW; //老师.画这条连线二点之间最高价的平行线.二点之间最低价的平行线.怎么写

TT:=TRENDLINES(B&&BB,L,B,L),NODRAW;
AH:CROSS(BACKSET(CROSS(BB1=1,0.5),HHVBARS(H,BARSLAST(CROSS(BB=1,0.5))+1)+1),0.5),NODRAW;
AL:CROSS(BACKSET(CROSS(BB1=1,0.5),LLVBARS(L,BARSLAST(CROSS(BB=1,0.5))+1)+1),0.5),NODRAW;

DRAWSL(AH,H,REFX(TT-REF(TT,1),1),1000,0,COLORRED);
DRAWSL(AL,L,REFX(TT-REF(TT,1),1),1000,0,COLORCYAN);


文期王华
3楼-- · 01-23 11:40
老师.这二句参数个数非法DRAWSL(AH,H,REFX(TT-REF(TT,1),1),0,1000,0,COLORRED);
DRAWSL(AL,L,REFX(TT-REF(TT,1),1),0,1000,0,COLORCYAN);

文华解答
4楼-- · 01-23 12:00
2楼调整了一下
文期王华
5楼-- · 01-23 12:20
老师.这是源码.没有线显示.请老师修改

VAR51:EMA(CLOSE,12)-EMA(CLOSE,50);
AR62:=EMA(AR51,25),LINETHICK2;//3



B:=AR62
BB:=BACKSET(ISLASTBAR,SUMBARS(B,2));
TT:=TRENDLINES(B&&BB,L,B,L),NODRAW;
AH:CROSS(BACKSET(CROSS(BB1=1,0.5),HHVBARS(H,BARSLAST(CROSS(BB=1,0.5))+1)+1),0.5),NODRAW;
AL:CROSS(BACKSET(CROSS(BB1=1,0.5),LLVBARS(L,BARSLAST(CROSS(BB=1,0.5))+1)+1),0.5),NODRAW;

DRAWSL(AH,H,REFX(TT-REF(TT,1),1),1000,0,COLORRED);
DRAWSL(AL,L,REFX(TT-REF(TT,1),1),1000,0,COLORCYAN);


文华解答
6楼-- · 01-23 12:41
分析后回复
文期王华
7楼-- · 01-23 13:01
好了.老师.谢谢老师

一周热门 更多>