麻烦老师帮改个指标谢谢

11-19 07:22发布

DRAWSL(CROSS(BACKSET(ISLASTBAR,DAYBARPOS),0.5),REF(C,1),0,REF(DAYBARPOS,DAYBARPOS),0,COLORWHITE);

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);
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);
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);
DRAWSL(CROSS(BACKSET(ISLASTBAR,DAYBARPOS),0.5),REF(LLV(MIN(O,C),DAYBARPOS),1),0,-REF(LLVBARS(C,DAYBARPOS),1),0,COLORWHITE);


NN:BARSLAST(WEEKDAY
DRAWSL(CROSS(BACKSET(ISLASTBAR,NN),0.5),REF(VALUEWHEN(NN=1,O),1),0,1,2,COLORBLUE);
DRAWSL(CROSS(BACKSET(ISLASTBAR,DAYBARPOS),0.5),REF(VALUEWHEN(NN=1,O),1),0,REF(DAYBARPOS,DAYBARPOS),0,COLORBLUE);
DRAWSL(CROSS(BACKSET(ISLASTBAR,NN),0.5),REF(VALUEWHEN(NN=1,O),1),0,-REF(NN,1),0,COLORBLUE);


其中有一条是本周的周开盘价画线,麻烦帮改成红色线,且画线是周线以下的周期是从周开盘的K线画到最新日期的收盘 多谢老师

DRAWSL(CROSS(BACKSET(ISLASTBAR,DAYBARPOS),0.5),REF(C,1),0,REF(DAYBARPOS,DAYBARPOS),0,COLORWHITE);
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);
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);
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);
DRAWSL(CROSS(BACKSET(ISLASTBAR,DAYBARPOS),0.5),REF(LLV(MIN(O,C),DAYBARPOS),1),0,-REF(LLVBARS(C,DAYBARPOS),1),0,COLORWHITE);


NN:BARSLAST(WEEKDAY
DRAWSL(CROSS(BACKSET(ISLASTBAR,NN),0.5),REF(VALUEWHEN(NN=1,O),1),0,1,2,COLORBLUE);
DRAWSL(CROSS(BACKSET(ISLASTBAR,DAYBARPOS),0.5),REF(VALUEWHEN(NN=1,O),1),0,REF(DAYBARPOS,DAYBARPOS),0,COLORBLUE);
DRAWSL(CROSS(BACKSET(ISLASTBAR,NN),0.5),REF(VALUEWHEN(NN=1,O),1),0,-REF(NN,1),0,COLORBLUE);


其中有一条是本周的周开盘价画线,麻烦帮改成红色线,且画线是周线以下的周期是从周开盘的K线画到最新日期的收盘 多谢老师

付费偷看设置
发送
1条回答
文华解答
1楼 · 11-19 07:31.采纳回答
您指标中没有本周的周开盘价画线,添加下面这句看下:

DRAWSL(CROSS(BACKSET(ISLASTBAR,NN),0.5),O,0,1,2,COLORRED),LINETHICK2;