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.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.