PROTECTED SOURCE SCRIPT
ROGUE NR4/NR7

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.
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.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.