NR4 & NR7 with Breakouts
By LuxAlgoApr 30, 2025129 chart adds
NR4 & NR7 with Breakouts is an indicator on Vela, our next-generation charting platform, written in Pine Script®.
Volatility contracts before it expands, and NR4 & NR7 with Breakouts is built on exactly that rhythm. The indicator scans for NR4 and NR7 narrow-range bars (bars whose high-low span is tighter than the three or six bars before them) then boxes each one and extends its range with lines, so a coiled market is visible the moment it forms.
How to Trade the NR4 & NR7 with Breakouts?
- Marked zone and range lines: a fresh narrow-range bar defines the exact levels to set limit orders and frame risk around.
- Breakout signal: fires when a candle closes outside the detected range, stamping the direction of the breakout; signals key off the most recent pattern until a new one appears.
- Reset at the Range Mean: after a signal, the logic pauses until price revisits the range's mean, preventing repeat triggers from a single pattern.
Every NR7 is by definition also an NR4, though not the reverse, so the pattern selection decides which bars set the range and its breakout levels: NR7 alone skips bars that are only NR4. These formations were historically studied on daily bars; the indicator can generate them from any timeframe above your chart's, and choosing that timeframe deliberately preserves the pattern's meaning.
NR4 & NR7 with Breakouts Settings
- Timeframe: the timeframe scanned for NR4 and NR7 patterns. Set it higher than the chart's own.
- Pattern Type: choose which patterns to visualize, NR4, NR7, or both.
Frequently Asked Questions
Free to use
Run it on Vela. Go further with a paid plan.
- Up to 500 Custom Alerts, with webhook automation
- Up to 10× the chart history of Free
- Orderflow lookback up to full history
- More Quant usage to customize it, plus extra usage when you need it
- Futures data alongside crypto, stocks, forex and commodities
Also works on
Related indicators
Run it on Vela. Make it yours with Quant.
Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.





