OPEN-SOURCE SCRIPT
Telah dikemas kini S&R Zones

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.
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.
Nota Keluaran
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.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.