PROTECTED SOURCE SCRIPT

RTH Highs & Lows (Unmitigated) [Sword & Shield]

47
A clean, no-repaint indicator that marks unmitigated RTH (Regular Trading Hours) Highs and Lows. This indicator automatically tracks daily NYSE RTH session highs and lows, then draws them as horizontal levels that persist until price taps (mitigates) them.

Features
RTH Session Detection — Tracks NYSE Regular Trading Hours only (09:30–16:00 New York time). Premarket and overnight sessions are ignored. No Repainting — Levels are locked in only after the RTH session closes. What you see is what you get.

High is mitigated when price trades at or above the level
Low is mitigated when price trades at or below the level
Once mitigated, the level is permanently removed from the chart

Dynamic Lines & Labels — Lines extend from the formation bar to the current bar, moving with price action in real-time. Labels stay positioned on the right side for easy visibility. Built-in Alerts — Get notified instantly when any RTH level is tapped. Alert message format: RTH High (Jan 12) tapped at 4765.25 Clean Label Format

RTH High (Jan 12) (4765.25)
RTH Low (Jan 12) (4728.50)

Stores up to 50 levels (configurable) — Oldest levels are automatically removed when capacity is reached.

Settings
High Level Color — Color for RTH High lines/labels (default: Red)
Low Level Color — Color for RTH Low lines/labels (default: Green)
Line Width — Thickness of level lines (default: 1)
Line Style — Solid, Dashed, or Dotted (default: Solid)
Max Levels to Store — Number of historical levels to keep (default: 50)
Enable Alerts — Toggle alert notifications (default: On)

How to Use
Add the indicator to any chart (works best on intraday timeframes)
Watch for unmitigated RTH levels as potential support/resistance zones
Set up alerts to get notified when levels are tapped
Use levels for entries, exits, or as targets
Alert Setup
Click on the indicator name → Add Alert
Set condition to "Any alert() function call"
Configure your preferred notification method (popup, email, webhook, mobile push)

Notes
Best used on futures (ES, NQ, etc.) and stocks during US market hours
Works on any timeframe
Zero repainting — levels only appear after RTH session closes
Efficient code with no unnecessary loops

© Sword & Shield

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.