← Script Vault

Indicator | Published 2022-12-25

Range Bound

Tracks highs, lows, opens, and closes over a lookback range to help identify possible support and resistance levels.

Range Bound chart screenshot

Indicator

Range Bound — Indicator Signal Lynx | Free TradingView Scripts | Pine Script v5 Original release: December 25, 2022

1. Overview Range Bound tracks price extremes over a user-selected lookback to visualize the areas where price has recently found resistance or support. It plots high/low boundaries derived from highs, opens, and closes rather than relying on one conventional support/resistance line.

2. How it works The script monitors the overall range and updates or resets selected boundaries when price breaks a range. It also plots several earlier close-based range levels so you can compare current price action against previous resistance or support areas.

3. Display and performance The optional redraw behavior updates previously drawn lines. Very short lookbacks can increase the number of lines created and deleted, which may slow TradingView chart performance. Disabling redraw can reduce that overhead.

This was an early Signal Lynx Pine project and is also the basis for the separate Range Bound Trailing Stop Loss indicator. The December 2022 release included a minor typo correction.

Signal Lynx — Automation for the Night-Shift Nation. https://www.signallynx.com

Get the Pine Code

Copy the full Pine code or download the .pine file. You don't need an account.

Indicator (Pine Script v5)

The source files include their author credits and license notices. Please follow those terms when you reuse the code.