文字标注的数字向左端移动10根k线

05-25 18:22发布

AY:=BACKSET(EVERY(H

BY:=BACKSET(EVERY(L>REF(L,2),2),LLVBARS(L,3)+1);
//AY:=BACKSET(REFX(ISLASTBAR,1)&&EVERY(H
//BY:=BACKSET(REFX(ISLASTBAR,1)&&EVERY(L>REF(L,1),2),LLVBARS(L,3)+1);//不包含正在走的还没有走完的K线
DRAWSL(CROSS(AY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),H+0*MINPRICE,0,2,0,RGB(8,225,8)),DOT;
DRAWTEXT(CROSS(AY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),H+0*MINPRICE,'不创新高'),COLORGREEN,VALIGN0,ALIGN0;
DRAWNUMBER1(CROSS(AY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),H+0*MINPRICE,H+2*MINPRICE,1),COLORGREEN,VALIGN0,ALIGN2;
DRAWSL(CROSS(BY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),L-0*MINPRICE,0,2,0,COLORRED),DOT;
DRAWTEXT(CROSS(BY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),L-0*MINPRICE,'停止新低'),RGB(228,5,8),ALIGN0;
DRAWNUMBER1(CROSS(BY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),L-0*MINPRICE,L-2*MINPRICE,1),RGB(228,5,8),ALIGN2;
老师好 麻烦老师帮我把画线和标注的文字标注的数字向左端移动10根k线 不然覆盖了k线影响看盘 谢谢老师


AY:=BACKSET(EVERY(H
BY:=BACKSET(EVERY(L>REF(L,2),2),LLVBARS(L,3)+1);
//AY:=BACKSET(REFX(ISLASTBAR,1)&&EVERY(H
//BY:=BACKSET(REFX(ISLASTBAR,1)&&EVERY(L>REF(L,1),2),LLVBARS(L,3)+1);//不包含正在走的还没有走完的K线
DRAWSL(CROSS(AY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),H+0*MINPRICE,0,2,0,RGB(8,225,8)),DOT;
DRAWTEXT(CROSS(AY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),H+0*MINPRICE,'不创新高'),COLORGREEN,VALIGN0,ALIGN0;
DRAWNUMBER1(CROSS(AY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),H+0*MINPRICE,H+2*MINPRICE,1),COLORGREEN,VALIGN0,ALIGN2;
DRAWSL(CROSS(BY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),L-0*MINPRICE,0,2,0,COLORRED),DOT;
DRAWTEXT(CROSS(BY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),L-0*MINPRICE,'停止新低'),RGB(228,5,8),ALIGN0;
DRAWNUMBER1(CROSS(BY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),L-0*MINPRICE,L-2*MINPRICE,1),RGB(228,5,8),ALIGN2;
老师好 麻烦老师帮我把画线和标注的文字标注的数字向左端移动10根k线 不然覆盖了k线影响看盘 谢谢老师


付费偷看设置
发送
9条回答
文华解答
2楼-- · 05-25 19:19
参考:

AY:=BACKSET(EVERY(H
BY:=BACKSET(EVERY(L>REF(L,2),2),LLVBARS(L,3)+1);
//AY:=BACKSET(REFX(ISLASTBAR,1)&&EVERY(H
//BY:=BACKSET(REFX(ISLASTBAR,1)&&EVERY(L>REF(L,1),2),LLVBARS(L,3)+1);//不包含正在走的还没有走完的K线
DRAWSL(REFX(CROSS(AY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),10),REFX(H+0*MINPRICE,10),0,2,0,RGB(8,225,8)),DOT;
DRAWTEXT(REFX(CROSS(AY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),10),REFX(H+0*MINPRICE,10),'不创新高'),COLORGREEN,VALIGN0,ALIGN0;
DRAWNUMBER1(REFX(CROSS(AY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),10),REFX(H+0*MINPRICE,10),REFX(H+2*MINPRICE,10),1),COLORGREEN,VALIGN0,ALIGN2;
DRAWSL(REFX(CROSS(BY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),10),REFX(L-0*MINPRICE,10),0,2,0,COLORRED),DOT;
DRAWTEXT(REFX(CROSS(BY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),10),REFX(L-0*MINPRICE,10),'停止新低'),RGB(228,5,8),ALIGN0;
DRAWNUMBER1(REFX(CROSS(BY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),10),REFX(L-0*MINPRICE,10),REFX(L-2*MINPRICE,10),1),RGB(228,5,8),ALIGN2;
天涯爱文华
3楼-- · 05-25 19:39
老师 弄错了 不是标注的数值 是原来要标注k线的位置标注的数值不变 只是把标注和画线向左延续10k
文华解答
4楼-- · 05-25 20:00
参考二楼回复。
天涯爱文华
5楼-- · 05-25 20:20
谢谢老师了 麻烦帮我画线再优化一下 画线向左延续到向左10k 向右延续到向右最新k线
文华解答
6楼-- · 05-25 20:40
参考:

AY:=BACKSET(EVERY(H
BY:=BACKSET(EVERY(L>REF(L,2),2),LLVBARS(L,3)+1);
//AY:=BACKSET(REFX(ISLASTBAR,1)&&EVERY(H
//BY:=BACKSET(REFX(ISLASTBAR,1)&&EVERY(L>REF(L,1),2),LLVBARS(L,3)+1);//不包含正在走的还没有走完的K线
DRAWSL(REFX(CROSS(AY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),10),REFX(H+0*MINPRICE,10),0,-10,0,RGB(8,225,8)),DOT;
B:=REFX(CROSS(AY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),10);
DRAWSL(ISLASTBAR,VALUEWHEN(CROSS(AY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),L-0*MINPRICE),0,-BARSLAST(B)+1,0,RGB(8,225,8)),DOT;

DRAWTEXT(REFX(CROSS(AY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),10),REFX(H+0*MINPRICE,10),'不创新高'),COLORGREEN,VALIGN0,ALIGN0;
DRAWNUMBER1(REFX(CROSS(AY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),10),REFX(H+0*MINPRICE,10),REFX(H+2*MINPRICE,10),1),COLORGREEN,VALIGN0,ALIGN2;
DRAWSL(REFX(CROSS(BY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),10),REFX(L-0*MINPRICE,10),0,-10,0,COLORRED),DOT;
A:=REFX(CROSS(BY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),10);
DRAWSL(ISLASTBAR,VALUEWHEN(CROSS(BY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),L-0*MINPRICE),0,-BARSLAST(A)+1,0,COLORRED),DOT;
DRAWTEXT(REFX(CROSS(BY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),10),REFX(L-0*MINPRICE,10),'停止新低'),RGB(228,5,8),ALIGN0;
DRAWNUMBER1(REFX(CROSS(BY,0.5)&&BACKSET(ISLASTBAR,BARSLAST(CROSS(AY,0.5)||CROSS(BY,0.5))+1),10),REFX(L-0*MINPRICE,10),REFX(L-2*MINPRICE,10),1),RGB(228,5,8),ALIGN2;

天涯爱文华
7楼-- · 05-25 21:00
老师 画线向左延续到向左10k就够了 不要无限太长 谢谢 麻烦帮我再弄一下

一周热门 更多>