TradingCharts

What it does

Classic S&R — Dynamic Support, Resistance & Breakout Flip Zones By PANZON SUHAS

Classic S&R automatically identifies high-probability swing supply and demand zones and tracks real-time role reversals (support-to-resistance and resistance-to-support flips) directly on your chart. Built for clean price-action execution on Nifty 50, Bank Nifty, stocks, and commodities, it eliminates manual level drawing and keeps your focus strictly on confirmed candle closes.

Key Features

Automated Swing Zone Detection: Plots clean rectangular zones anchored from the candle wick extreme (High / Low) to the candle body (Open / Close), capturing true institutional rejection areas rather than single thin lines.

Dynamic Breakout Role-Reversal (Flip Mode): Automatically monitors confirmed candle closes (barstate.isconfirmed) across active zones. When price closes decisively above a resistance zone, it flips to Support (Blue); when price closes below a support zone, it flips to Resistance (Red).

Clutter-Free Chart Management: Automatically extends active zones forward to the current bar while capping the maximum displayed zones (Sup/Res Count) so historical levels never overcrowd your workspace.

Optional Trend-Based Candle Coloring: Includes an optional candle-coloring mode that highlights bullish or bearish market structure once price breaks and closes beyond the latest active resistance or support zone.

Input Settings

Swing: Lookback length used to validate swing highs and swing lows (Default: 6).

Sup/Res (Breakout Mode): Maximum number of recent zones kept visible on the chart (Default: 4).

Show Support & Resistance: Toggle zone visibility on or off without removing the indicator.

Enable Candle Coloring: Optional bar coloring based on confirmed breakouts of the latest S&R levels.

How to use it

  • Open the charts and go to Indicators › My scripts › Shared with me (or search the Community library) and press Add to chart.
  • The code is protected by the author: the script runs on the chart with the source hidden.

Version history

  • v1 — 22 Nov, 11:24 pm · compiler 0.3.69

#support-and-resistance#price-action#supply-and-demand#breakout#swing-trading#intraday-trading#nifty-50#trend-following