OPEN-SOURCE SCRIPT

Major Historical S&R Zones

265
[u]Major Historical Support & Resistance Zones[/u]

Major Historical Support & Resistance Zones is designed to objectively identify and rank the most significant historical support and resistance areas on any market or timeframe. Rather than relying on manually drawn horizontal lines, the indicator automatically analyses historical price action, groups significant reactions into zones, and scores each zone based on its historical importance.

The indicator looks for meaningful pivot highs and lows, measures the strength of the subsequent price reaction using ATR (Average True Range), evaluates rejection quality through wick analysis, and clusters nearby reactions into a single support or resistance zone. When multiple significant reactions occur around the same price level, the zone becomes stronger and receives a higher score.

Unlike traditional support and resistance indicators that simply draw every swing high and low, this indicator attempts to filter out market noise and highlight only the price areas that have repeatedly influenced market direction.

[u]Features[/u]

* Automatically detects major historical support and resistance zones.
* Clusters multiple historical reactions into a single zone.
* Scores each zone based on reaction quality and historical significance.
* Counts the number of independent reactions ("Hits") at each level.
* Identifies Support/Resistance Flip zones where price has historically acted as both support and resistance.
* Adjustable ATR sensitivity and clustering distance.
* Built-in colour and scoring guide that can be enabled or disabled from the settings.

[u]Colour Guide[/u]

🟩 Green Zone

* Price is currently above the zone.
* The zone is acting as historical support.

🟥 Red Zone

* Price is currently below the zone.
* The zone is acting as historical resistance.

🟨 Orange Zone

* Price is currently trading inside the historical zone.
* This represents a decision area where the market is testing historical support or resistance.

[u]Understanding the Score[/u]

Each zone receives a strength score based on:

* Size of the historical reaction.
* Quality of price rejection (wick analysis).
* Number of independent reactions.
* Support/Resistance Flip bonus.

General interpretation:

* 0–3 = Weak
* 3–5 = Minor
* 5–7 = Good
* 7–10 = Strong
* 10–15 = Very Strong
* 15+ = Exceptional

Higher scores indicate areas where price has historically shown stronger reactions.

[u]Understanding Hits[/u]

Hits represent the number of separate significant reactions that occurred within the zone.

General guide:

* 1 = Single historical reaction
* 2 = Confirmed level
* 3 = Strong level
* 4–5 = Very strong level
* 6+ = Major historical level

More hits generally indicate greater historical recognition of that price area.

[u]S/R Flip[/u]

When a zone displays S/R Flip, it means that the same price area has historically acted as both:

* Support
* Resistance

These zones often represent some of the strongest historical price levels because market participants have repeatedly recognised them from both directions.

[u]Suggested Workflow[/u]

For the best results:

1. Open the Weekly chart to identify the strongest long-term support and resistance zones.
2. Switch to the Daily chart to refine those major levels.
3. Use the 4H, 8H, or 12H chart for additional precision.
4. Execute trades using your preferred lower timeframe confirmation.

This top-down approach helps maintain focus on the most significant historical levels before refining entries.

[u]Inputs[/u]

The indicator provides several adjustable settings:

* Pivot Strength – Controls how significant a swing must be before it is considered.
* ATR Length – Used to normalise reaction size across different markets.
* Minimum Reaction ATR – Filters out weak reactions.
* Cluster Distance ATR – Controls how close reactions must be before they are grouped together.
* Zone Width ATR – Determines the thickness of each support/resistance zone.
* Minimum Hits – Minimum number of reactions required before displaying a zone.
* Minimum Score – Minimum strength score required before displaying a zone.
* Display Options – Toggle labels and the built-in legend on or off.

[u]Best Practices[/u]

This indicator is designed to identify historically important price zones, not generate buy or sell signals.

The strongest trading opportunities often occur when:

* High-scoring zones align with your own market structure analysis.
* Higher timeframe zones overlap with lower timeframe confirmations.
* Price shows clear rejection or acceptance at the identified historical levels.

As with all technical analysis tools, this indicator should be used alongside sound risk management and your broader trading methodology rather than in isolation.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.