月周期画线不显示

10-16 21:34发布


如下,年线开盘价,月线上没有显示出来?
YY1:=BARSLAST(YEAR<>REF(YEAR,1))+1;
YY2:=BACKSET(ISLASTBAR,YY1);

DRAWSL(CROSS(YY2,0.5)&&PERIOD=9,O,0,1,2,COLORGREEN);
DRAWSL(CROSS(YY2,0.5)&&PERIOD=10,O,0,1,2,COLORGREEN);

DRAWCOLORKLINE(CROSS(YY2,0.5)&&ISUP&&PERIOD=10,RGB(255,0,128),0);
DRAWCOLORKLINE(CROSS(YY2,0.5)&&ISDOWN&&PERIOD=10,RGB(0,250,0),0);
DRAWCOLORKLINE(CROSS(YY2,0.5)&&ISEQUAL&&PERIOD=10,COLORYELLOW,0);


如下,年线开盘价,月线上没有显示出来?
YY1:=BARSLAST(YEAR<>REF(YEAR,1))+1;
YY2:=BACKSET(ISLASTBAR,YY1);

DRAWSL(CROSS(YY2,0.5)&&PERIOD=9,O,0,1,2,COLORGREEN);
DRAWSL(CROSS(YY2,0.5)&&PERIOD=10,O,0,1,2,COLORGREEN);

DRAWCOLORKLINE(CROSS(YY2,0.5)&&ISUP&&PERIOD=10,RGB(255,0,128),0);
DRAWCOLORKLINE(CROSS(YY2,0.5)&&ISDOWN&&PERIOD=10,RGB(0,250,0),0);
DRAWCOLORKLINE(CROSS(YY2,0.5)&&ISEQUAL&&PERIOD=10,COLORYELLOW,0);
付费偷看设置
发送
1条回答
文华解答
1楼 · 10-16 21:49.采纳回答

您加载的合约K线上有去年数据吗?没有的话就无法显示

如果不是新上市的合约,按键盘向下键申请全部数据看下