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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。