The target of the script is that it will plot vertical lines every 30 minutes.(i,e 8:00, 8:30, 9:00, 9:30) The problem is that it only plots 30 minutes of the present day. I would like it to also plot the 30 minutes of the previous days or week.
This is the script that I’ve made.
//@version=5
indicator(title=”30 Minute Lines”, short title=”30 Minute Lines”, overlay=true)
minutesInPeriod = input.int(30, “Period Length (Minutes)”)
periodStartMinute = input.int(0, “Period Start Minute (0-59)”, minval=0, maxval=59)
Please see image for reference
Nick Piojo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.