OPEN-SOURCE SCRIPT
[ArchLabs] Support & Resitance Levels

[ArchLabs] Support & Resistance Levels — SR-v1.100
Smart, auto-managed zones for clean market structure
⸻
🔍 What this indicator does
This script automatically finds and maintains high-quality support & resistance zones on your chart, so you don’t have to keep redrawing levels by hand.
It:
• Detects major swing highs and lows (pivots)
• Builds support and resistance zones (not just thin lines)
• Filters out overlapping / redundant levels
• Tracks how price interacts with those zones in real time
• Marks and alerts:
• ✅ Breakouts
• 🚨 False breakouts
• 🔁 Retests
• Flips broken support → resistance and resistance → support automatically
You get a clean structural map of the market, continuously updated.
⸻
🧠 How levels are built (conceptually)
1. The indicator looks back over a configurable window and finds significant highs and lows (pivots).
2. From each confirmed pivot, it creates:
• A core level price (horizontal line)
• A price area around it (shaded zone), sized relative to recent price range/volatility
3. It then checks for overlaps between existing levels and new candidates:
• If a new level is too close to an existing one (within your overlap threshold), it gets discarded.
• This keeps only the most meaningful, non-redundant levels on the chart.
4. A cap of around 10 levels per side (support / resistance) keeps the view readable.
The result: a curated set of zones that actually matter, not a wall of lines.
⸻
🎨 Visuals on the chart
You’ll see:
• Support zones
• Line: bullish color (default green)
• Area: semi-transparent band below/around the line
• Resistance zones
• Line: bearish color (default red)
• Area: semi-transparent band above/around the line
Colors are customizable for:
• Level line
• Zone area
• Breakout highlight
• Retest label
This makes it easy to visually separate support vs resistance and quickly spot key reactions.
⸻
⚡ Dynamic behavior & level lifecycle
Each level goes through a natural “life cycle,” which the indicator tracks for you:
1. Active zone
• The level is valid and extended to the right as long as price stays “engaged” with it (using smoothed highs/lows to avoid noise).
2. Extension / pause
• When price pulls away from the level far enough, the extension can temporarily stop so the level doesn’t stretch indefinitely without interaction.
• If price comes back into the zone with meaningful action, the level can resume extension.
3. Break & role reversal
• When price cleanly breaks the level (based on smoothed price, not just a wick), the zone is:
• Stopped and locked in place
• Marked as broken
• Immediately cloned and flipped:
• Broken support becomes a new resistance zone at the same area.
• Broken resistance becomes a new support zone.
This gives you automatic role-reversal levels without manually redrawing anything.
⸻
🧷 Event tags & alerts
The indicator tracks three key interactions with each zone:
1. Breakouts (optional)
When price decisively breaks a level:
• A small breakout label appears on/near the level:
• Support broken → bearish breakout style
• Resistance broken → bullish breakout style
• An alert message is fired (if alerts are enabled on the script)
Use this to catch true structural breaks that may signal trend continuation or regime change.
⸻
2. False breakouts (optional)
False breakouts are marked when price:
• Wicks through a level, but
• Fails to close beyond it and quickly returns inside the zone
When detected:
• A 🚨 FB label appears at the level
• The label tracks with price while the false breakout is active
• An alert can fire each time this behavior is confirmed
This is very useful for reversal traders and anyone fading failed breakouts.
⸻
3. Retests (optional)
Retests are detected when:
• Price re-enters a zone after previously moving away from it
• The candle comes back into the area for the first time in this new approach
The script:
• Marks the retest with a “T” label in a distinct color for support vs resistance
• Brings that level to the top of the internal priority list, keeping fresh retests visually and logically “hot”
Traders often use these as high-probability reaction points (e.g., breakout → retest → continuation).
⸻
⚙️ Key settings
All inputs are grouped for clarity:
Support / Resistance Levels
• Pivots Lookback
Controls how far back the indicator looks for swing highs/lows.
• Higher value → fewer, stronger levels
• Lower value → more reactive, more levels
• Overlap Multiplier (Pips)
Sets how aggressively overlapping levels are merged/ignored.
• Higher value → fewer levels, more consolidation
• Lower value → more granular levels
• Auto Overlap
When enabled, the script automatically adjusts the overlap threshold based on timeframe:
• Intraday lower timeframes → tighter filtering
• Higher/intra-session → more appropriate scaling
This lets you drop the indicator on multiple timeframes without constantly retuning.
⸻
Level Event Toggles
• Breakout Labels & Alerts (on/off)
• False Breakout Labels & Alerts (on/off)
• Retest Labels & Alerts (on/off)
Turn on only what fits your style.
Scalpers might want all three; swing traders may prefer only breakouts + retests.
⸻
Support / Resistance Colors
Separate color groups for:
• Line & area of support levels
• Line & area of resistance levels
• Visual styling for breakouts
• Visual styling for retests
You can match your existing chart theme or build a dedicated SR layout.
⸻
📈 How to use it in your trading
Here are a few practical ways to integrate this indicator:
• Context map
Use it as a structural overlay on any symbol/timeframe to see where price is likely to react.
• Breakout + retest setups
• Wait for a level to break with a breakout label.
• Then watch for a T (retest) label into the flipped zone.
• Combine with your own confirmation (price action, volume, oscillators, etc.).
• Mean-reversion & fade trades
• Hunt for false breakout (FB) labels on key levels.
• These are often good spots to fade aggressive moves that lose momentum.
• Confluence builder
• Combine zones with trend tools, VR/DC, moving averages, or higher timeframe structure.
• A breakout/retest at a level that also lines up with higher TF structure can be especially meaningful.
⸻
✅ Summary
[ArchLabs] Support & Resistance Levels (SR-v1.100) is designed to be:
• Clean – no cluttered spaghetti of lines
• Adaptive – zones evolve with the market and flip roles automatically
• Actionable – breakout, false breakout, and retest events are clearly marked and alert-ready
• Flexible – works on any market and timeframe with simple, intuitive inputs
Drop it on your chart, tune the lookback & overlap to your style, and let it handle the heavy lifting of structural mapping while you focus on decisions.
Smart, auto-managed zones for clean market structure
⸻
🔍 What this indicator does
This script automatically finds and maintains high-quality support & resistance zones on your chart, so you don’t have to keep redrawing levels by hand.
It:
• Detects major swing highs and lows (pivots)
• Builds support and resistance zones (not just thin lines)
• Filters out overlapping / redundant levels
• Tracks how price interacts with those zones in real time
• Marks and alerts:
• ✅ Breakouts
• 🚨 False breakouts
• 🔁 Retests
• Flips broken support → resistance and resistance → support automatically
You get a clean structural map of the market, continuously updated.
⸻
🧠 How levels are built (conceptually)
1. The indicator looks back over a configurable window and finds significant highs and lows (pivots).
2. From each confirmed pivot, it creates:
• A core level price (horizontal line)
• A price area around it (shaded zone), sized relative to recent price range/volatility
3. It then checks for overlaps between existing levels and new candidates:
• If a new level is too close to an existing one (within your overlap threshold), it gets discarded.
• This keeps only the most meaningful, non-redundant levels on the chart.
4. A cap of around 10 levels per side (support / resistance) keeps the view readable.
The result: a curated set of zones that actually matter, not a wall of lines.
⸻
🎨 Visuals on the chart
You’ll see:
• Support zones
• Line: bullish color (default green)
• Area: semi-transparent band below/around the line
• Resistance zones
• Line: bearish color (default red)
• Area: semi-transparent band above/around the line
Colors are customizable for:
• Level line
• Zone area
• Breakout highlight
• Retest label
This makes it easy to visually separate support vs resistance and quickly spot key reactions.
⸻
⚡ Dynamic behavior & level lifecycle
Each level goes through a natural “life cycle,” which the indicator tracks for you:
1. Active zone
• The level is valid and extended to the right as long as price stays “engaged” with it (using smoothed highs/lows to avoid noise).
2. Extension / pause
• When price pulls away from the level far enough, the extension can temporarily stop so the level doesn’t stretch indefinitely without interaction.
• If price comes back into the zone with meaningful action, the level can resume extension.
3. Break & role reversal
• When price cleanly breaks the level (based on smoothed price, not just a wick), the zone is:
• Stopped and locked in place
• Marked as broken
• Immediately cloned and flipped:
• Broken support becomes a new resistance zone at the same area.
• Broken resistance becomes a new support zone.
This gives you automatic role-reversal levels without manually redrawing anything.
⸻
🧷 Event tags & alerts
The indicator tracks three key interactions with each zone:
1. Breakouts (optional)
When price decisively breaks a level:
• A small breakout label appears on/near the level:
• Support broken → bearish breakout style
• Resistance broken → bullish breakout style
• An alert message is fired (if alerts are enabled on the script)
Use this to catch true structural breaks that may signal trend continuation or regime change.
⸻
2. False breakouts (optional)
False breakouts are marked when price:
• Wicks through a level, but
• Fails to close beyond it and quickly returns inside the zone
When detected:
• A 🚨 FB label appears at the level
• The label tracks with price while the false breakout is active
• An alert can fire each time this behavior is confirmed
This is very useful for reversal traders and anyone fading failed breakouts.
⸻
3. Retests (optional)
Retests are detected when:
• Price re-enters a zone after previously moving away from it
• The candle comes back into the area for the first time in this new approach
The script:
• Marks the retest with a “T” label in a distinct color for support vs resistance
• Brings that level to the top of the internal priority list, keeping fresh retests visually and logically “hot”
Traders often use these as high-probability reaction points (e.g., breakout → retest → continuation).
⸻
⚙️ Key settings
All inputs are grouped for clarity:
Support / Resistance Levels
• Pivots Lookback
Controls how far back the indicator looks for swing highs/lows.
• Higher value → fewer, stronger levels
• Lower value → more reactive, more levels
• Overlap Multiplier (Pips)
Sets how aggressively overlapping levels are merged/ignored.
• Higher value → fewer levels, more consolidation
• Lower value → more granular levels
• Auto Overlap
When enabled, the script automatically adjusts the overlap threshold based on timeframe:
• Intraday lower timeframes → tighter filtering
• Higher/intra-session → more appropriate scaling
This lets you drop the indicator on multiple timeframes without constantly retuning.
⸻
Level Event Toggles
• Breakout Labels & Alerts (on/off)
• False Breakout Labels & Alerts (on/off)
• Retest Labels & Alerts (on/off)
Turn on only what fits your style.
Scalpers might want all three; swing traders may prefer only breakouts + retests.
⸻
Support / Resistance Colors
Separate color groups for:
• Line & area of support levels
• Line & area of resistance levels
• Visual styling for breakouts
• Visual styling for retests
You can match your existing chart theme or build a dedicated SR layout.
⸻
📈 How to use it in your trading
Here are a few practical ways to integrate this indicator:
• Context map
Use it as a structural overlay on any symbol/timeframe to see where price is likely to react.
• Breakout + retest setups
• Wait for a level to break with a breakout label.
• Then watch for a T (retest) label into the flipped zone.
• Combine with your own confirmation (price action, volume, oscillators, etc.).
• Mean-reversion & fade trades
• Hunt for false breakout (FB) labels on key levels.
• These are often good spots to fade aggressive moves that lose momentum.
• Confluence builder
• Combine zones with trend tools, VR/DC, moving averages, or higher timeframe structure.
• A breakout/retest at a level that also lines up with higher TF structure can be especially meaningful.
⸻
✅ Summary
[ArchLabs] Support & Resistance Levels (SR-v1.100) is designed to be:
• Clean – no cluttered spaghetti of lines
• Adaptive – zones evolve with the market and flip roles automatically
• Actionable – breakout, false breakout, and retest events are clearly marked and alert-ready
• Flexible – works on any market and timeframe with simple, intuitive inputs
Drop it on your chart, tune the lookback & overlap to your style, and let it handle the heavy lifting of structural mapping while you focus on decisions.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.