OPEN-SOURCE SCRIPT

Monthly Vertical Lines

//version=5
indicator("Monthly Vertical Lines", overlay=true)
month_change = (month != month[1]) // Detects a new month
if month_change
line.new(x1=bar_index, y1=na, x2=bar_index, y2=na, extend=extend.both, color=color.gray, style=line.style_dotted, width=1)

Disclaimer