I don't know how to go about it from this point, everything in my code seems logical but now no plot even appears at all in any of the 4pm. Any help would be greatly appreciated.
Here's my progress:
declare hide_on_intraday;
input day_of_week = {default Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday};
input OpenTime = 1600;
input DurationHours = .25;
def durationSec = DurationHours * 60 * 60;
def secondsPassed = SecondsFromTime(OpenTime);
def rth = ((RegularTradingEnd(GetYYYYMMDD()) - (RegularTradingStart(GetYYYYMMDD()))) / (AggregationPeriod.WEEK));
plot Price = if secondsPassed >= 0 and secondsPassed <= durationSec and GetDayOfWeek(GetYYYYMMDD()) == day_of_week + 1 then close else Double.NaN;