Crptopastor support & Resistance Pro

An adaptive support-and-resistance engine that clusters swing points into price zones, then auto-draws trade plans (entry, stop-loss, multi-stage take-profits) and breakout alerts — in a single, self-contained Pine v6 study.
Why traders use it
- []Cuts through chart noise by keeping only the strongest confluence zones.
[]Updates widths automatically to match recent volatility.
[]Plots ready-made long or short setups you can accept, ignore or tweak.
[]Fires alerts the instant price closes across a zone’s midpoint. - Works on any symbol and any timeframe, from 1 min scalps to weekly swing charts.
How it works (under the hood)
- []Pivot harvesting – Every bar, the script scans the last prd candles for confirmed highs/lows with ta.pivothigh / ta.pivotlow.
[]Data pool maintenance – It stores only the most recent maxnumpp pivots, keeping the dataset light.
[]Clustering – Pivots lying inside a dynamic channel width (ChannelW % of the past 300-bar range) merge into a common zone.
[]Strength scoring – Each zone’s score = number of pivots inside it. The top maxnumsr zones that beat min_strength survive; weaker or overlapping zones are discarded.
[]Visual rendering – Zones appear as translucent boxes: lime below price (potential support) or red above (potential resistance). Mid-prices are auto-labelled with timeframe + value.
[]Breakout detection – When a candle closes across any zone midpoint, an alert fires (“Support Broken” / “Resistance Broken”). - Trade-plan overlay (optional) – The script finds the closest valid zone and prints:
• Entry at midpoint
• Stop-loss buffered by sl_buffer_pct of zone height
• Up to num_tp_levels take-profit labels on successive opposite zones
Key inputs & typical tweaks
- []Pivot Period (prd) – Higher on H4/D1, lower on scalps.
[]Source – “High/Low” (classic) or “Close/Open” for body-based pivots.
[]Maximum Channel Width % – Tighten in ranging markets, widen in trending ones.
[]Minimum Strength – Raise to display only the most respected zones. - Show Trade Setups – Toggle if you want a pure S/R map without entries/SL/TPs.
Practical guide
- []Add the indicator to your chart and adjust ChannelW % until each zone looks realistic for your symbol’s volatility.
[]Hover a zone to view its pivot count; more pivots = stronger level.
[]Enable alerts → “Support or Resistance Broken” to catch live momentum shifts.
[]If you trade the built-in setups, confirm them with your own filters (volume, trend filters, etc.) and size positions around the printed stop-loss. - Disable the Trade Setup layer when back-testing other strategies — the S/R boxes remain.
What makes it different from classic horizontal lines?
- []Zone widths breathe with market range instead of staying fixed.
[]Self-filtering strength score removes the clutter of weak levels.
[]Integrated, label-based trade plans eliminate spreadsheet math.
[]Pure price-action logic — no MAs, RSI, Bollinger Bands or repackaged public code.
Pine-snip preview
Disclaimer
This indicator is a technical-analysis tool, not financial advice. Test thoroughly on demo or small size before risking capital.
Script su invito
Solo gli utenti approvati dall'autore possono accedere a questo script. È necessario richiedere e ottenere l'autorizzazione per utilizzarlo. Tale autorizzazione viene solitamente concessa dopo il pagamento. Per ulteriori dettagli, seguire le istruzioni dell'autore riportate di seguito o contattare direttamente cryptopastor001.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Attenzione: prima di richiedere l'accesso, leggi la nostra guida per gli script su invito.
Declinazione di responsabilità
Script su invito
Solo gli utenti approvati dall'autore possono accedere a questo script. È necessario richiedere e ottenere l'autorizzazione per utilizzarlo. Tale autorizzazione viene solitamente concessa dopo il pagamento. Per ulteriori dettagli, seguire le istruzioni dell'autore riportate di seguito o contattare direttamente cryptopastor001.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Attenzione: prima di richiedere l'accesso, leggi la nostra guida per gli script su invito.