延长线

11-30 22:15发布

老师把黄线延长到最右端,2.上穿这条线时标注文字,🙏老师
B:=BACKSET(ISLASTBAR,SUMBARS(VALUEWHEN(CROSS(AH=1,0.5),H)-VALUEWHEN(CROSS(AL=1,0.5),L)>40&&(CROSS(AL=1,0.5)||CROSS(AH=1,0.5)),1));
DRAWSL(VALUEWHEN(CROSS(AH=1,0.5),H)-VALUEWHEN(CROSS(AL=1,0.5),L)>40&&CROSS(AH=1,0.5)&&B,(H+VALUEWHEN(CROSS(AL=1,0.5),L))/2,0,10,0,COLORYELLOW);
DRAWSL(VALUEWHEN(CROSS(AH=1,0.5),H)-VALUEWHEN(CROSS(AL=1,0.5),L)>40&&CROSS(AL=1,0.5)&&B,(L+VALUEWHEN(CROSS(AH=1,0.5),H))/2,0,10,0,COLORYELLOW);

老师把黄线延长到最右端,2.上穿这条线时标注文字,🙏老师
B:=BACKSET(ISLASTBAR,SUMBARS(VALUEWHEN(CROSS(AH=1,0.5),H)-VALUEWHEN(CROSS(AL=1,0.5),L)>40&&(CROSS(AL=1,0.5)||CROSS(AH=1,0.5)),1));
DRAWSL(VALUEWHEN(CROSS(AH=1,0.5),H)-VALUEWHEN(CROSS(AL=1,0.5),L)>40&&CROSS(AH=1,0.5)&&B,(H+VALUEWHEN(CROSS(AL=1,0.5),L))/2,0,10,0,COLORYELLOW);
DRAWSL(VALUEWHEN(CROSS(AH=1,0.5),H)-VALUEWHEN(CROSS(AL=1,0.5),L)>40&&CROSS(AL=1,0.5)&&B,(L+VALUEWHEN(CROSS(AH=1,0.5),H))/2,0,10,0,COLORYELLOW);
付费偷看设置
发送
9条回答
文华解答
2楼-- · 11-30 23:18
参考:

B:=BACKSET(ISLASTBAR,SUMBARS(VALUEWHEN(CROSS(AH=1,0.5),H)-VALUEWHEN(CROSS(AL=1,0.5),L)>40&&(CROSS(AL=1,0.5)||CROSS(AH=1,0.5)),1));
DRAWSL(VALUEWHEN(CROSS(AH=1,0.5),H)-VALUEWHEN(CROSS(AL=1,0.5),L)>40&&CROSS(AH=1,0.5)&&B,(H+VALUEWHEN(CROSS(AL=1,0.5),L))/2,0,1,2,COLORYELLOW);
DRAWSL(VALUEWHEN(CROSS(AH=1,0.5),H)-VALUEWHEN(CROSS(AL=1,0.5),L)>40&&CROSS(AL=1,0.5)&&B,(L+VALUEWHEN(CROSS(AH=1,0.5),H))/2,0,1,2,COLORYELLOW);

CROSS(C,VALUEWHEN(VALUEWHEN(CROSS(AH=1,0.5),H)-VALUEWHEN(CROSS(AL=1,0.5),L)>40&&CROSS(AH=1,0.5)&&B,(H+VALUEWHEN(CROSS(AL=1,0.5),L))/2)),WORD(1,'上穿');
CROSS(C,VALUEWHEN(VALUEWHEN(CROSS(AH=1,0.5),H)-VALUEWHEN(CROSS(AL=1,0.5),L)>40&&CROSS(AL=1,0.5)&&B,(L+VALUEWHEN(CROSS(AH=1,0.5),H))/2)),WORD(1,'上穿');

文期王华
3楼-- · 11-30 23:38
老师,0.618位置再画条这样的线,谢谢老师
文华解答
4楼-- · 11-30 23:58
什么高度到设么高度的 0.618?
文期王华
5楼-- · 12-01 00:18
/2,这个是0.5, 把/2改成0.618 老师
文华解答
6楼-- · 12-01 00:39
参考;

AH:=1;
AL:=1;
B:=BACKSET(ISLASTBAR,SUMBARS(VALUEWHEN(CROSS(AH=1,0.5),H)-VALUEWHEN(CROSS(AL=1,0.5),L)>40&&(CROSS(AL=1,0.5)||CROSS(AH=1,0.5)),1));
M1:MIN(H,VALUEWHEN(CROSS(AL=1,0.5),L)),NODRAW;
X1:MAX(H,VALUEWHEN(CROSS(AL=1,0.5),L)),NODRAW;

M2:MIN(L,VALUEWHEN(CROSS(AH=1,0.5),H)),NODRAW;
X2:MAX(L,VALUEWHEN(CROSS(AH=1,0.5),H)),NODRAW;
DRAWSL(VALUEWHEN(CROSS(AH=1,0.5),H)-VALUEWHEN(CROSS(AL=1,0.5),L)>40&&CROSS(AH=1,0.5)&&B,M1+(X1-M1)*0.618,0,1,2,COLORYELLOW);
DRAWSL(VALUEWHEN(CROSS(AH=1,0.5),H)-VALUEWHEN(CROSS(AL=1,0.5),L)>40&&CROSS(AL=1,0.5)&&B,M2+(X2-M2)*0.618,0,1,2,COLORYELLOW);

CROSS(C,VALUEWHEN(VALUEWHEN(CROSS(AH=1,0.5),H)-VALUEWHEN(CROSS(AL=1,0.5),L)>40&&CROSS(AH=1,0.5)&&B,M1+(X1-M1)*0.618 )),WORD(1,'上穿');
CROSS(C,VALUEWHEN(VALUEWHEN(CROSS(AH=1,0.5),H)-VALUEWHEN(CROSS(AL=1,0.5),L)>40&&CROSS(AL=1,0.5)&&B,M2+(X2-M2)*0.618 )),WORD(1,'上穿');

文期王华
7楼-- · 12-01 00:58
老师,只改一下黄线,一楼黄线是只显示最后一次,改为所有都显示,长度截止到下一次画线