PROTECTED SOURCE SCRIPT

Student Wyckoff SR Strength (Multi Levels)

34

This indicator builds a simple, objective map of support and resistance based on recent price action. It scans a user-defined lookback window and clusters bar lows into support zones and bar highs into resistance zones. For each cluster it measures how often price interacted with that level and ranks the strongest zones.

**How it works**

* The script looks back over the last *N* bars (input **“Range length in bars left”**).
* Every bar low is added to a “support cluster”, every bar high to a “resistance cluster”.
* Price levels that are closer than a given number of ticks (input **“Merge levels, ticks”**) are merged into one zone.
* For each cluster the script counts how many bars touched that zone and divides this by the number of bars in the window.
* The result is plotted as horizontal lines: the top *K* support levels and the top *K* resistance levels, where *K* is set in **“Max support/resistance levels”**.
* Each line has a label with the level type and its **strength in %** (share of bars in the lookback window that touched this zone).

Higher percentages mean that price has interacted with this level more frequently inside the chosen range, which can help to highlight zones where the market repeatedly reacted in the past. The script does **not** generate trade signals; it only provides a visual context for your own Wyckoff / price-reading analysis.

**Inputs**

* **Range length in bars left** – number of bars used for calculating levels. Longer ranges give more “global” zones, shorter ranges focus on local structure.
* **Merge levels, ticks** – price tolerance for merging nearby highs/lows into one level.
* **Max support/resistance levels** – how many strongest support and resistance lines to display (1–5).
* **Support line width / Resistance line width** – thickness of each line.
* **Support line color / Resistance line color** – color of support and resistance lines.
* **Show strength in percent** – toggle labels with percentage strength.
* **Support label text / Resistance label text** – base text shown in labels before the percentage (can be customized).
* **Support label background / text color** – styling for support labels.
* **Resistance label background / text color** – styling for resistance labels.
* **Label text size** – global label font size (Tiny / Small / Normal / Large / Huge).

**Notes**

* All calculations are done on confirmed bars (`barstate.isconfirmed`) to avoid repainting within the current bar.
* The strength value is statistical and depends on the chosen range and merge settings. It should be combined with your own context analysis, volume, and higher-time-frame structure rather than used as a standalone entry or exit signal.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.