tradingsher
New member
I need the below to plot for current day only not all days:
# Define the opening time (9:30 AM EST)
input openingTime = 930;
# Calculate the opening price at 9:30 AM EST
def openingPrice = if SecondsTillTime(openingTime) == 0 then open else openingPrice[1];
# Plot a horizontal line at the opening price
plot OpeningLine = openingPrice;
OpeningLine.SetDefaultColor(Color.GREEN);
Plus how to fix so it doesnt shrink on higher timeframe (hourly and up)
# Define the opening time (9:30 AM EST)
input openingTime = 930;
# Calculate the opening price at 9:30 AM EST
def openingPrice = if SecondsTillTime(openingTime) == 0 then open else openingPrice[1];
# Plot a horizontal line at the opening price
plot OpeningLine = openingPrice;
OpeningLine.SetDefaultColor(Color.GREEN);
Plus how to fix so it doesnt shrink on higher timeframe (hourly and up)
Last edited: