OPEN-SOURCE SCRIPT
RM-SR-4H

RM. "SR Intraday 4H" automatically maps the most relevant intraday Support/Resistance levels by detecting 4H pivots and clustering the ones price has touched most. It reads higher-timeframe structure (4H) and projects clean, non-repainting levels onto your intraday chart — color-coded by strength — so you always know which levels actually matter.
Features
4H pivot detection pulled via higher-timeframe request — no repainting (lookahead off).
Smart clustering: nearby pivots merge into a single level using a configurable percentage tolerance.
Strength tiers by touches: green (minor) → yellow (medium) → red (major), with line width scaling by strength.
Touch + price labels on each level.
Auto-cleaned window: only pivots within your lookback (in days) are kept.
Timeframe guard: warns if used above 4H (levels are built for 4H and below).
Key Settings
History (days): how far back to collect pivots.
Pivot strength (4H bars): sensitivity of pivot detection.
Cluster tolerance (%): how close two pivots must be to merge into one level. Lower = more, tighter levels; higher = fewer, grouped levels.
Minimum touches to show / Medium / Major thresholds: control which levels appear and how they're tiered.
Max visible levels: caps chart clutter.
How to Use
Treat red (major) levels as the key decision zones — strongest reaction areas.
Use yellow/green levels for scaling out and partial take-profits.
Trade reactions off these levels in the direction of your higher-timeframe bias.
Tips
On 1min, lower the cluster tolerance (0.03–0.08%) for finer levels; on 15m–1H, keep it wider so touches group into meaningful zones.
Raise "Minimum touches" to show only the most-respected levels.
Created by Raúl (RM) (@your_username) · © 2026
All rights reserved. Educational use only.
Technical analysis tool for educational purposes only. This is not financial advice and does not guarantee results. Trade at your own risk.
Features
4H pivot detection pulled via higher-timeframe request — no repainting (lookahead off).
Smart clustering: nearby pivots merge into a single level using a configurable percentage tolerance.
Strength tiers by touches: green (minor) → yellow (medium) → red (major), with line width scaling by strength.
Touch + price labels on each level.
Auto-cleaned window: only pivots within your lookback (in days) are kept.
Timeframe guard: warns if used above 4H (levels are built for 4H and below).
Key Settings
History (days): how far back to collect pivots.
Pivot strength (4H bars): sensitivity of pivot detection.
Cluster tolerance (%): how close two pivots must be to merge into one level. Lower = more, tighter levels; higher = fewer, grouped levels.
Minimum touches to show / Medium / Major thresholds: control which levels appear and how they're tiered.
Max visible levels: caps chart clutter.
How to Use
Treat red (major) levels as the key decision zones — strongest reaction areas.
Use yellow/green levels for scaling out and partial take-profits.
Trade reactions off these levels in the direction of your higher-timeframe bias.
Tips
On 1min, lower the cluster tolerance (0.03–0.08%) for finer levels; on 15m–1H, keep it wider so touches group into meaningful zones.
Raise "Minimum touches" to show only the most-respected levels.
Created by Raúl (RM) (@your_username) · © 2026
All rights reserved. Educational use only.
Technical analysis tool for educational purposes only. This is not financial advice and does not guarantee results. Trade at your own risk.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.