请老师帮我加个画线的数据数字

01-11 21:36发布

DRAWSL(DAYBARPOS=1&&BACKSET(ISLASTBAR,DAYBARPOS),O,0,REF(DAYBARPOS,DAYBARPOS),0,COLORGREEN);//当日开盘价D...

DRAWSL(DAYBARPOS=1&&BACKSET(ISLASTBAR,DAYBARPOS),O,0,REF(DAYBARPOS,DAYBARPOS),0,COLORGREEN);//当日开盘价

DRAWSL(CROSS(BACKSET(ISLASTBAR,DAYBARPOS),0.5),REF(C,1),0,REF(DAYBARPOS,DAYBARPOS),0,COLORWHITE),DOT;
DRAWSL(CROSS(BACKSET(ISLASTBAR,DAYBARPOS),0.5),REF(C,1),0,-1,0,COLORWHITE);//昨日收盘价

DRAWSL(CROSS(BACKSET(ISLASTBAR,DAYBARPOS),0.5),REF(VALUEWHEN(DAYBARPOS=1,O),1),0,REF(DAYBARPOS,DAYBARPOS),0,COLORWHITE),DOT;
DRAWSL(CROSS(BACKSET(ISLASTBAR,DAYBARPOS),0.5),REF(VALUEWHEN(DAYBARPOS=1,O),1),0,-REF(DAYBARPOS,1),0,COLORWHITE);//昨日开盘价

DRAWSL(CROSS(BACKSET(ISLASTBAR,DAYBARPOS),0.5),REF(HHV(MAX(O,C),DAYBARPOS),1),0,REF(DAYBARPOS,DAYBARPOS),0,COLORWHITE),DOT;
DRAWSL(CROSS(BACKSET(ISLASTBAR,DAYBARPOS),0.5),REF(HHV(MAX(O,C),DAYBARPOS),1),0,-REF(HHVBARS(C,DAYBARPOS),1),0,COLORWHITE);//昨日最高价

DRAWSL(CROSS(BACKSET(ISLASTBAR,DAYBARPOS),0.5),REF(LLV(MIN(O,C),DAYBARPOS),1),0,REF(DAYBARPOS,DAYBARPOS),0,COLORWHITE),DOT;
DRAWSL(CROSS(BACKSET(ISLASTBAR,DAYBARPOS),0.5),REF(LLV(MIN(O,C),DAYBARPOS),1),0,-REF(LLVBARS(C,DAYBARPOS),1),0,COLORWHITE);//昨日最低价


这5条线,麻烦老师帮我在今天的最右边用标出画线的具体数值,今天开盘价用绿色字体
昨日的这几条用白色,然后帮加2个汉字有前面,如:昨开xx 昨高xx 昨低xx 昨收


付费偷看设置
发送
9条回答
文华解答
2楼-- · 01-12 00:38

2楼参考

N:=DAYBARPOS;
DRAWSL(PERIOD<8&&DAYBARPOS=1&&BACKSET(PERIOD<8&&ISLASTBAR,DAYBARPOS),O,0,REF(DAYBARPOS,DAYBARPOS),0,COLORGREEN);//当日开盘价
DRAWTEXT(PERIOD<8&&ISLASTBAR,REF(O,N-1),'今开:'),ALIGN2,COLORGREEN;
DRAWNUMBER1(PERIOD<8&&ISLASTBAR,REF(O,N-1),REF(O,N-1),0),ALIGN0,COLORGREEN;

DRAWSL(CROSS(BACKSET(PERIOD<8&&ISLASTBAR,DAYBARPOS),0.5),REF(C,1),0,REF(DAYBARPOS,DAYBARPOS),0,COLORWHITE),DOT;
DRAWSL(CROSS(BACKSET(PERIOD<8&&ISLASTBAR,DAYBARPOS),0.5),REF(C,1),0,-1,0,COLORWHITE);//昨日收盘价
DRAWTEXT(PERIOD<8&&ISLASTBAR,REF(C,N),'昨收:'),ALIGN2,COLORWHITE;
DRAWNUMBER1(PERIOD<8&&ISLASTBAR,REF(C,N),REF(C,N),0),ALIGN0,COLORWHITE;

DRAWSL(CROSS(BACKSET(PERIOD<8&&ISLASTBAR,DAYBARPOS),0.5),REF(VALUEWHEN(DAYBARPOS=1,O),1),0,REF(DAYBARPOS,DAYBARPOS),0,COLORWHITE),DOT;
DRAWSL(CROSS(BACKSET(PERIOD<8&&ISLASTBAR,DAYBARPOS),0.5),REF(VALUEWHEN(DAYBARPOS=1,O),1),0,-REF(DAYBARPOS,1),0,COLORWHITE);//昨日开盘价
DRAWTEXT(PERIOD<8&&ISLASTBAR,REF(REF(O,N-1),N),'昨开:'),ALIGN2,COLORWHITE;
DRAWNUMBER1(PERIOD<8&&ISLASTBAR,REF(REF(O,N-1),N),REF(C,N),0),ALIGN0,COLORWHITE;

DRAWSL(CROSS(BACKSET(PERIOD<8&&ISLASTBAR,DAYBARPOS),0.5),REF(HHV(MAX(O,C),DAYBARPOS),1),0,REF(DAYBARPOS,DAYBARPOS),0,COLORWHITE),DOT;
DRAWSL(CROSS(BACKSET(PERIOD<8&&ISLASTBAR,DAYBARPOS),0.5),REF(HHV(MAX(O,C),DAYBARPOS),1),0,-REF(HHVBARS(C,DAYBARPOS),1),0,COLORWHITE);//昨日最高价
DRAWTEXT(PERIOD<8&&ISLASTBAR,REF(HHV(MAX(O,C),N),N),'昨高:'),ALIGN2,COLORWHITE;
DRAWNUMBER1(PERIOD<8&&ISLASTBAR,REF(HHV(MAX(O,C),N),N),REF(HHV(MAX(O,C),N),N),0),ALIGN0,COLORWHITE;

DRAWSL(CROSS(BACKSET(PERIOD<8&&ISLASTBAR,DAYBARPOS),0.5),REF(LLV(MIN(O,C),DAYBARPOS),1),0,REF(DAYBARPOS,DAYBARPOS),0,COLORWHITE),DOT;
DRAWSL(CROSS(BACKSET(PERIOD<8&&ISLASTBAR,DAYBARPOS),0.5),REF(LLV(MIN(O,C),DAYBARPOS),1),0,-REF(LLVBARS(C,DAYBARPOS),1),0,COLORWHITE);//昨日最低价
DRAWTEXT(PERIOD<8&&ISLASTBAR,REF(LLV(MIN(O,C),N),N),'昨低:'),ALIGN2,COLORWHITE;
DRAWNUMBER1(PERIOD<8&&ISLASTBAR,REF(LLV(MIN(O,C),N),N),REF(LLV(MIN(O,C),N),N),0),ALIGN0,COLORWHITE;

4楼参考:

NG:=BACKSET(ISLASTBAR,DAYBARPOS);//昨日收盘均价线
DRAWSL(PERIOD<8&&CROSS(NG,0.5),REF(SETTLE,DAYBARPOS),0,REF(DAYBARPOS,DAYBARPOS)-DAYBARPOS+1,0,COLORYELLOW),DOT;//昨日收盘均价线
LSETTLE:=REFX1(REF(SETTLE,DAYBARPOS),999);//昨日收盘均价线
NG4:=BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,1));//昨日收盘均价线
昨日收盘均价线:IF(PERIOD<8&&NG4,LSETTLE,NULL),COLORYELLOW,NOTEXT,DOT;//昨日收盘均价线
DRAWNUMBER(PERIOD<8&&ISLASTBAR,LSETTLE,LSETTLE,2,COLORYELLOW),ALIGN0;

文期王华
3楼-- · 01-12 00:58
麻烦您老师, 8楼麻烦再帮我改下,有时候数字一样或太近的话 看不太清,这种情况,让他们上下排列,不要挡到行不老师 多谢 !!
文华解答
4楼-- · 01-12 01:18

距离随K线缩放变化,而且4个价不一定哪两个太近,没法避免的

建议调整下思路