sushpawar001
Pine Script Rookie
Pine Script Rookie
Posts: 2
Joined: October 2nd, 2022

How to plot a vertical lines every day at a specific time?

I want to plot a vertical line on 15 min chart at 12 pm, how to do it in pine script? Thank You

ajinc
Pine Script Scholar
Pine Script Scholar
Posts: 2
Joined: May 7th, 2022

Re: How to plot a vertical lines every day at a specific time?

//@version=5
indicator("Time", overlay=true)
t1 = time_close(timeframe.period, "1200-1201", "GMT+5:30")
bgcolor(t1 ? color.new(color.blue, 90) : na)

sushpawar001
Pine Script Rookie
Pine Script Rookie
Posts: 2
Joined: October 2nd, 2022

Re: How to plot a vertical lines every day at a specific time?

ajinc wrote:
Fri Oct 07, 2022 5:22 am
//@version=5
indicator("Time", overlay=true)
t1 = time_close(timeframe.period, "1200-1201", "GMT+5:30")
bgcolor(t1 ? color.new(color.blue, 90) : na)
Thank You :wink:

Return to “Request Scripts”