OPEN-SOURCE SCRIPT
Updated Market Pivot Levels

Tired of automated support and resistance indicators that clutter your chart with dozens of overlapping, noisy lines?
The Market Pivot Levels indicator is designed to map core market structure exactly like a professional technician would—cleanly, precisely, and without the noise. Instead of drawing a line at every single minor fluctuation, this script uses advanced filtering logic to identify true structural zones and spaces them out beautifully across your chart.
Key Features:
How it Works Under the Hood:
By default, the script looks for highly granular micro-swings (1-bar lookback), but relies on the 1.0 ATR distance multiplier to filter out the noise. The result is a highly responsive, custom price grid that adapts to the specific volatility of whatever ticker you are trading. It keeps a maximum of 20 active levels on the screen, automatically cleaning up old, irrelevant zones as new price action develops.
How to Use It:
Simply drop it onto any chart timeframe. Use the automatically generated yellow zones for breakout entries, strict stop-loss placements, or profit targets during extended trends.
The Market Pivot Levels indicator is designed to map core market structure exactly like a professional technician would—cleanly, precisely, and without the noise. Instead of drawing a line at every single minor fluctuation, this script uses advanced filtering logic to identify true structural zones and spaces them out beautifully across your chart.
Key Features:
- ATR Proximity Filter (No Clutter): Standard pivot scripts often stack lines on top of each other during consolidation. This script uses an Average True Range (ATR) proximity filter. If a new pivot forms too close to an existing major level, it ignores it, ensuring your chart only displays distinct, well-spaced tradeable zones.
- Psychological Price Snapping: Human traders don't draw lines at random decimals like $196.19—they look for clean, psychological numbers. This script automatically takes the exact wick of a structural swing and snaps it to the nearest whole dollar (e.g., $196.00), mimicking a human hand.
- Flush Right-Aligned Labels: Forget hovering over lines to see their value. Custom price tags are dynamically magnetized to the far right of your screen, sitting perfectly flush with your standard price axis for immediate readability.
- Stealth UI: We believe in clean charts and clean interfaces. All underlying parameters (lookbacks, ATR multipliers, line thickness) are hardcoded and hidden from the settings menu to keep your TradingView UI completely minimalist. It is strictly plug-and-play.
How it Works Under the Hood:
By default, the script looks for highly granular micro-swings (1-bar lookback), but relies on the 1.0 ATR distance multiplier to filter out the noise. The result is a highly responsive, custom price grid that adapts to the specific volatility of whatever ticker you are trading. It keeps a maximum of 20 active levels on the screen, automatically cleaning up old, irrelevant zones as new price action develops.
How to Use It:
Simply drop it onto any chart timeframe. Use the automatically generated yellow zones for breakout entries, strict stop-loss placements, or profit targets during extended trends.
Release Notes
Prevented negative values for pivot calculation inputs.Release Notes
Added absolute min/max limits to input parametersOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.