OPEN-SOURCE SCRIPT
Updated Dimensional Support Resistance

Dimensional Support Resistance [JOAT]
Overview
Dimensional Support Resistance is an open-source overlay indicator that automatically detects and displays clean, non-overlapping support and resistance levels using pivot-based analysis with intelligent filtering. It identifies significant swing highs and lows, filters them by minimum distance to prevent visual clutter, and provides volume-confirmed bounce signals.
What This Indicator Does
The indicator calculates and displays:
How It Works
Pivot detection scans for swing highs and lows using a configurable strength parameter. A pivot low requires the low to be lower than all surrounding bars within the strength period.

Signal Generation
The indicator generates bounce signals using TradingView's built-in pivot detection combined with candle reversal confirmation:
A cooldown period of 15 bars prevents signal spam.
Dashboard Panel
A compact dashboard displays:
Dashboard position is configurable (Top Left, Top Right, Bottom Left, Bottom Right).
Visual Elements
Input Parameters
Suggested Use Cases
Timeframe Recommendations
Works on all timeframes. Higher timeframes (4H, Daily) provide more significant levels with fewer signals. Lower timeframes show more granular structure but may produce more noise.
Limitations
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. It does not constitute financial advice. Past performance does not guarantee future results. Always use proper risk management and conduct your own analysis before trading.
- Made with passion by officialjackofalltrades
Overview
Dimensional Support Resistance is an open-source overlay indicator that automatically detects and displays clean, non-overlapping support and resistance levels using pivot-based analysis with intelligent filtering. It identifies significant swing highs and lows, filters them by minimum distance to prevent visual clutter, and provides volume-confirmed bounce signals.
What This Indicator Does
The indicator calculates and displays:
- Dynamic Pivot Levels - Automatically detected swing highs and lows based on configurable pivot strength
- Distance Filtering - Ensures levels are spaced apart by a minimum percentage to prevent overlap
- S/R Zones - Visual zones around each level showing the price area of significance
- Bounce Detection - Identifies when price reverses at support or resistance levels
- Volume Confirmation - Strong signals require above-average volume for confirmation
How It Works
Pivot detection scans for swing highs and lows using a configurable strength parameter. A pivot low requires the low to be lower than all surrounding bars within the strength period.
Signal Generation
The indicator generates bounce signals using TradingView's built-in pivot detection combined with candle reversal confirmation:
- Support Bounce: Pivot low forms with bullish close (close > open)
- Resistance Bounce: Pivot high forms with bearish close (close < open)
- Strong Bounce: Bounce occurs with volume 1.5x above 20-period average
A cooldown period of 15 bars prevents signal spam.
Dashboard Panel
A compact dashboard displays:
- Support - Count of active support levels
- Resistance - Count of active resistance levels
Dashboard position is configurable (Top Left, Top Right, Bottom Left, Bottom Right).
Visual Elements
- Support Lines - Green horizontal lines at support levels
- Resistance Lines - Red horizontal lines at resistance levels
- S/R Zones - Semi-transparent boxes around levels showing zone width
- Price Labels - S: and R: labels showing exact price of nearest levels
- BOUNCE Markers - Triangle shapes with text when price bounces at a level
- STRONG Markers - Label shapes when bounce occurs with high volume
Input Parameters
- Lookback Period (default: 100) - Historical bars to scan for pivots
- Pivot Strength (default: 8) - Bars on each side required for valid pivot (higher = fewer but stronger levels)
- Max Levels Each Side (default: 2) - Maximum support and resistance levels displayed
- Zone Width % (default: 0.15) - Width of zones around each level as percentage of price
- Min Distance Between Levels % (default: 1.0) - Minimum spacing between levels to prevent overlap
- Show S/R Zones (default: true) - Toggle zone visualization
- Show Bounce Signals (default: true) - Toggle signal markers
- Support Color (default: #00ff88) - Color for support elements
- Resistance Color (default: #ff3366) - Color for resistance elements
Suggested Use Cases
- Identify key support and resistance levels for entry and exit planning
- Use bounce signals as potential reversal confirmation
- Combine with other indicators for confluence-based trading decisions
- Monitor strong signals for high-probability setups with volume confirmation
Timeframe Recommendations
Works on all timeframes. Higher timeframes (4H, Daily) provide more significant levels with fewer signals. Lower timeframes show more granular structure but may produce more noise.
Limitations
- Pivot detection requires lookback bars, so very recent pivots may not be immediately visible
- Bounce signals are based on pivot formation and may lag by the pivot strength period
- Levels are recalculated on each bar, so they may shift as new pivots form
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. It does not constitute financial advice. Past performance does not guarantee future results. Always use proper risk management and conduct your own analysis before trading.
- Made with passion by officialjackofalltrades
Release Notes
Dimensional Support Resistance [JOAT]
Overview
Dimensional Support Resistance is an open-source overlay indicator that automatically detects and displays clean, non-overlapping support and resistance levels using pivot-based analysis with intelligent filtering. It identifies significant swing highs and lows, filters them by minimum distance to prevent visual clutter, and provides volume-confirmed bounce signals.
What This Indicator Does
The indicator calculates and displays:
- Dynamic Pivot Levels - Automatically detected swing highs and lows based on configurable pivot strength
- Distance Filtering - Ensures levels are spaced apart by a minimum percentage to prevent overlap
- S/R Zones - Visual zones around each level showing the price area of significance
- Bounce Detection - Identifies when price reverses at support or resistance levels
- Volume Confirmation - Strong signals require above-average volume for confirmation
How It Works
Pivot detection scans for swing highs and lows using a configurable strength parameter. A pivot low requires the low to be lower than all surrounding bars within the strength period:
findPivots(int lookback, int strength, bool isSupport) =>
array<float> levels = array.new_float(0)
for i = strength to lookback - strength
bool isPivot = true
float price = isSupport ? low : high
for j = 1 to strength
if isSupport
if low >= low[i - j] or low >= low[i + j]
isPivot := false
break
else
if high <= high[i - j] or high <= high[i + j]
isPivot := false
break
if isPivot
array.push(levels, price)
levels
The filtering function ensures levels maintain minimum distance from each other to prevent visual overlap:
filterLevels(array<float> levels, float minDistPct, int maxCount, float currentPrice, bool isSupport) =>
// Sort levels by proximity to current price
// Skip levels on wrong side of price
// Check distance from existing levels in result
// Only add if not too close to existing levels
Signal Generation
The indicator generates bounce signals using TradingView's built-in pivot detection combined with candle reversal confirmation:
Support Bounce: Pivot low forms with bullish close (close > open)
Resistance Bounce: Pivot high forms with bearish close (close < open)
Strong Bounce: Bounce occurs with volume 1.5x above 20-period average
A cooldown period of 15 bars prevents signal spam.
Dashboard Panel
A compact dashboard displays:
Support - Count of active support levels
Resistance - Count of active resistance levels
Dashboard position is configurable (Top Left, Top Right, Bottom Left, Bottom Right).
Visual Elements
Support Lines - Green horizontal lines at support levels
Resistance Lines - Red horizontal lines at resistance levels
S/R Zones - Semi-transparent boxes around levels showing zone width
Price Labels - S: and R: labels showing exact price of nearest levels
BOUNCE Markers - Triangle shapes with text when price bounces at a level
STRONG Markers - Label shapes when bounce occurs with high volume
Input Parameters
Lookback Period (default: 100) - Historical bars to scan for pivots
Pivot Strength (default: 8) - Bars on each side required for valid pivot (higher = fewer but stronger levels)
Max Levels Each Side (default: 2) - Maximum support and resistance levels displayed
Zone Width % (default: 0.15) - Width of zones around each level as percentage of price
Min Distance Between Levels % (default: 1.0) - Minimum spacing between levels to prevent overlap
Show S/R Zones (default: true) - Toggle zone visualization
Show Bounce Signals (default: true) - Toggle signal markers
Support Color (default: #00ff88) - Color for support elements
Resistance Color (default: #ff3366) - Color for resistance elements
Suggested Use Cases
Identify key support and resistance levels for entry and exit planning
Use bounce signals as potential reversal confirmation
Combine with other indicators for confluence-based trading decisions
Monitor strong signals for high-probability setups with volume confirmation
Timeframe Recommendations
Works on all timeframes. Higher timeframes (4H, Daily) provide more significant levels with fewer signals. Lower timeframes show more granular structure but may produce more noise.
Limitations
Pivot detection requires lookback bars, so very recent pivots may not be immediately visible
Bounce signals are based on pivot formation and may lag by the pivot strength period
Levels are recalculated on each bar, so they may shift as new pivots form
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. It does not constitute financial advice. Past performance does not guarantee future results. Always use proper risk management and conduct your own analysis before trading.
Made with care by officialjackofalltrades
Update: Historical Buffer Error Fixed - Reduced default lookback from 100 to 80, pivot strength from 8 to 5, and added bounds checking in the findPivots function to prevent accessing bars beyond the historical buffer limit.
Added Safety Checks - The function now checks bar_index and limits the maximum lookback to 90 bars to stay within Pine Script's historical buffer.
Release Notes
Reduced default settings to be safer for all plans:Lookback: 80 → 50 (max 80)
Pivot Strength: 5 → 3 (max 6)
Stricter bounds in findPivots:
Max offset capped at 35 (was 90)
Safe strength capped at 5 (was 10)
Added extra bounds checking before accessing historical data
Fixed plotshape offset:
Changed from variable offset=-i_pivotStrength to constant offset=-3
Pine Script requires offset to be a simple int (compile-time constant)
Added display=display.pane to remove 0.00 values from status line
Fixed signal detection to use fixed pivot strength of 3 for consistent behavior
really sorry for the people who were having issues on this indicator, SOON v2 will be coming out with EVEN GREATER things!
stay tuned!
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.
#1 Full Stack AI Trading Community — jackofalltrades.vip | 2026: The Era of AI Trading Mastery📈 AI Automation • AI Trading Bots • Indicators • Strategies • Limitless Potential • Institutional Grade Products • t.me/jackofalltradesvip
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.
#1 Full Stack AI Trading Community — jackofalltrades.vip | 2026: The Era of AI Trading Mastery📈 AI Automation • AI Trading Bots • Indicators • Strategies • Limitless Potential • Institutional Grade Products • t.me/jackofalltradesvip
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.