This seems simple enough to work, but for some reason, it doesn't show up on the lower time frames [1-5 min]. Nor does it extend into the day.
I'd like it to extend from the beginning of the week to the end.
I'd like it to extend from the beginning of the week to the end.
Code:
def Last_Week_Close = close(period = "week" )[1];
def This_Week_open = open(period = "week" );
plot PWeek_Close = Last_Week_Close;
plot CWeek_Open = This_Week_open;
PWeek_Close.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
PWeek_Close.SetDefaultColor(Color.UPTICK);
PWeek_Close.SetLineWeight(1);
CWeek_Open.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
CWeek_Open.SetDefaultColor(Color.DOWNTICK);
CWeek_Open.SetLineWeight(1);
Last edited by a moderator: