OPEN-SOURCE SCRIPT
Mis à jour

S&R Zones

597
This indicator automatically detects swing highs and swing lows on the chart using a 3-bar swing structure. Once a swing point is confirmed, it evaluates the price movement and body size of subsequent candles. If the movement meets a volume-based range condition (2.5× the average body size of the last 5 candles), the indicator creates a zone around that swing.

Swing High Zones: Drawn from the highest price of the swing cluster down to its midpoint.

Swing Low Zones: Drawn from the lowest price of the swing cluster up to its midpoint.

These zones act as dynamic support and resistance levels and remain on the chart until they are either:

Broken (price closes beyond the zone), or

Expired (more than 200 bars old).

Zones are color-coded for clarity:

🔴 Red shaded areas = Swing High resistance zones.

🟢 Green shaded areas = Swing Low support zones.

This makes the indicator useful for identifying high-probability reversal areas, liquidity zones, and supply/demand imbalances that persist until invalidated.
Notes de version
This indicator automatically detects swing highs and swing lows on the chart using a 3-bar swing structure. Once a swing point is confirmed, it evaluates the price movement and body size of subsequent candles. If the movement meets a volume-based range condition (2.5× the average body size of the last 5 candles), the indicator creates a zone around that swing.

Swing High Zones: Drawn from the highest price of the swing cluster down to its midpoint.

Swing Low Zones: Drawn from the lowest price of the swing cluster up to its midpoint.

These zones act as dynamic support and resistance levels and remain on the chart until they are either:

Broken (price closes beyond the zone), or

Expired (more than 200 bars old).

Zones are color-coded for clarity:

🔴 Red shaded areas = Swing High resistance zones.

🟢 Green shaded areas = Swing Low support zones.

This makes the indicator useful for identifying high-probability reversal areas, liquidity zones, and supply/demand imbalances that persist until invalidated.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.