PROTECTED SOURCE SCRIPT

ROGUE NR4/NR7

66
ROGUE NR4/NR7 is a pattern-detection tool that highlights Narrow Range 4 (NR4) and Narrow Range 7 (NR7) setups and tracks their breakout behavior. These patterns are known for marking consolidation zones where volatility contracts. A breakout from these ranges often signals the start of an expansion move — making them useful for traders who focus on breakout strategies.

Key Features:
-NR4 / NR7 Detection: Automatically identifies the narrowest 4- or 7-bar ranges on your selected timeframe.
-Custom Sessions: Option to restrict detection and signals to specific trading hours (e.g., RTH).
-Breakout Signals: Prints a single up or down signal on the first valid breakout from the NR range.
-Dynamic Stop-Loss: Plots ATR-based stop loss levels alongside breakout signals.
-Deviation Levels: Plots customizable deviation lines based on the NR7/NR4 range size for measured move projections.
-Session-Aware: All signals and ranges reset at the start of a new trading day, preventing carryover into the next session.
-Clean Charting: Range boxes and lines extend for a user-defined number of bars, keeping your charts clear and focused.

How to Use:
-Select your preferred higher timeframe for detecting NR4/NR7 patterns.
-Wait for an NR box to appear (highlighted with color).
-Monitor for the first breakout signal (▲ for bullish, ▼ for bearish).
-Use the ATR stop-loss line and deviation levels to plan risk and targets.
-Combine with broader market context or confirmation tools for best results.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.