Auto Support & Resistance Zones [GainzAlgo]

OVERVIEW
Auto Support & Resistance Zones finds the price areas the market has reacted to most often and draws them as zones, so you don't have to mark levels by hand. Each zone shows how many times price has turned there, and zones are coloured as resistance (above price) or support (below price) based on where the market is trading now.
HOW IT WORKS
1. Swing points: the script detects swing highs and lows using a configurable pivot strength (10 bars on each side by default) and remembers the most recent ones (80 by default).
2. Clustering: swing points that sit within one ATR-based zone width of each other are merged into a single zone. Every merged swing point counts as a touch, and the zone centre is the average of its touches.
3. Relevance filter: only zones inside the high-low range of the last 300 bars are considered, so old price areas far from today's market don't clutter the chart.
4. Ranking: zones with at least 2 touches are ranked by touch count (ties go to the zone closest to price) and the strongest 8 are drawn.
Zone width scales with ATR, so zones adapt automatically to the symbol and timeframe.
HOW TO READ IT
- Red zones above price are resistance, green zones below price are support.
- The label shows the number of touches. More touches means the market has respected that area more often.
- When price closes through a zone, it often flips role: old resistance becomes support and vice versa. The colours update automatically.
HOW TO USE IT
- Plan entries, targets and stops around well-tested zones instead of arbitrary levels.
- Treat a clean close through a multi-touch zone as a potential breakout, and a rejection from it as a potential reversal area.
- Raise the pivot strength on lower timeframes for fewer, more significant zones, or lower it for more detail.
ALERTS
Create an alert with "Any alert() function call" to be notified when a candle closes above or below one of the displayed zones.
LIMITATIONS
Zones are recalculated on the latest bar from confirmed swing points, which need the pivot strength in bars to the right before they exist, so very recent swings are added with that delay. Support and resistance areas describe where price reacted in the past; they do not guarantee future reactions. Always combine them with your own analysis and risk management.
Auto Support & Resistance Zones finds the price areas the market has reacted to most often and draws them as zones, so you don't have to mark levels by hand. Each zone shows how many times price has turned there, and zones are coloured as resistance (above price) or support (below price) based on where the market is trading now.
HOW IT WORKS
1. Swing points: the script detects swing highs and lows using a configurable pivot strength (10 bars on each side by default) and remembers the most recent ones (80 by default).
2. Clustering: swing points that sit within one ATR-based zone width of each other are merged into a single zone. Every merged swing point counts as a touch, and the zone centre is the average of its touches.
3. Relevance filter: only zones inside the high-low range of the last 300 bars are considered, so old price areas far from today's market don't clutter the chart.
4. Ranking: zones with at least 2 touches are ranked by touch count (ties go to the zone closest to price) and the strongest 8 are drawn.
Zone width scales with ATR, so zones adapt automatically to the symbol and timeframe.
HOW TO READ IT
- Red zones above price are resistance, green zones below price are support.
- The label shows the number of touches. More touches means the market has respected that area more often.
- When price closes through a zone, it often flips role: old resistance becomes support and vice versa. The colours update automatically.
HOW TO USE IT
- Plan entries, targets and stops around well-tested zones instead of arbitrary levels.
- Treat a clean close through a multi-touch zone as a potential breakout, and a rejection from it as a potential reversal area.
- Raise the pivot strength on lower timeframes for fewer, more significant zones, or lower it for more detail.
ALERTS
Create an alert with "Any alert() function call" to be notified when a candle closes above or below one of the displayed zones.
LIMITATIONS
Zones are recalculated on the latest bar from confirmed swing points, which need the pivot strength in bars to the right before they exist, so very recent swings are added with that delay. Support and resistance areas describe where price reacted in the past; they do not guarantee future reactions. Always combine them with your own analysis and risk management.
Get GainzAlgo V2 Alpha only at gainzalgo.com/products/gainzalgo-v2
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Get GainzAlgo V2 Alpha only at gainzalgo.com/products/gainzalgo-v2
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.