How can I make my plot line flat all the way across the day and pre-market without it fluctuating up and down? I'd like a flat horizontal line at the same price as the AddLabel all the way across.
Code:
input startTime = 0930;
input endTime = 1030;
def Active = SecondsFromTime(startTime) >= 0 and SecondsTillTime(endTime) >= 0;
def HighFirst60Min = if Active and !Active[1]
then high
else Max(high, HighFirst60Min[1]);
input aggregationPeriod = AggregationPeriod.DAY;
AddLabel(1, "Open to 10:30 High = " + HighFirst60Min, Color.PINK);
plot F60minHigh = HighFirst60Min;
Last edited: