I'd like to only have these lines shown for the last full four-hour session. Here's what I have so far:
################FOUR HOUR############################
input Four_Hour_Aggregation = AggregationPeriod.FOUR_HOURS;
plot Four_Hour_h = high(period= Four_Hour_Aggregation);
plot Four_Hour_l = low(period= Four_Hour_Aggregation);
plot Four_Hour_c = close(period= Four_Hour_Aggregation);
Four_Hour_h.SetDefaultColor(Color.Red);
Four_Hour_h.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
Four_Hour_l.SetLineWeight(3);
Four_Hour_l.SetDefaultColor(Color.Uptick);
Four_Hour_l.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
Four_Hour_l.SetLineWeight(3);
Four_Hour_c.SetDefaultColor(Color.Orange);
Four_Hour_c.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
Four_Hour_c.SetLineWeight(3);
################FOUR HOUR############################
input Four_Hour_Aggregation = AggregationPeriod.FOUR_HOURS;
plot Four_Hour_h = high(period= Four_Hour_Aggregation);
plot Four_Hour_l = low(period= Four_Hour_Aggregation);
plot Four_Hour_c = close(period= Four_Hour_Aggregation);
Four_Hour_h.SetDefaultColor(Color.Red);
Four_Hour_h.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
Four_Hour_l.SetLineWeight(3);
Four_Hour_l.SetDefaultColor(Color.Uptick);
Four_Hour_l.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
Four_Hour_l.SetLineWeight(3);
Four_Hour_c.SetDefaultColor(Color.Orange);
Four_Hour_c.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
Four_Hour_c.SetLineWeight(3);