OPEN-SOURCE SCRIPT

Valid Monthly Levels

69
Valid Monthly Levels (No Sweeps) + Smart Labels
This tool automatically plots the highs and lows of each completed monthly candle and tracks their validity in real time. A level is considered valid until it has been swept (price trades strictly beyond that high or low). Once swept, the line and label can either be removed or dimmed depending on your settings.

Key features:

Monthly highs and lows: Each month’s range is marked with horizontal levels that extend forward.

Valid vs. swept logic: Levels are only valid until breached; swept levels can be hidden or kept as dotted/grey lines.

Smart labels: Each level is labeled with the month and year (e.g., Sep ’25 H/L). On higher timeframes, labels sit at the candle; on lower timeframes, labels automatically shift to the right edge so they don’t disappear off-screen.

Customizable appearance: Choose colors for highs, lows, and swept levels; adjust line styles; and limit how many past months are shown.

Clutter control: Cap the maximum number of labels, so your chart stays readable even on small intraday timeframes.

This indicator is useful for traders who track monthly supply/demand extremes, liquidity sweeps, and higher-timeframe context when executing on lower timeframes.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.