OPEN-SOURCE SCRIPT

RM-SR-4H

270
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.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.