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.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。