The Narrow Range theory is a way of quantifying how markets can move from a consolidation period (the range) to a trending period. Let's automate it in Profectus AI.
.png)
Markets alternate between periods of consolidation and periods of clear trends. Toby Crabel is a strict believer of this theory. In 1989, Toby Crabel published a book on another very well-known market theory and strategy, “The Opening Range Breakout”. We will discuss this theory in a later post. Right now, we’re focusing on Crabel’s theories around market contractions and expansions.
Crabel’s premise was that markets continually rotate from rest to movement and back again. In simple terms, this means that markets shift between trend and consolidation in a flowing motion. Toby Crabel was looking for ways to capture the shift from consolidation to a trend to hop on a starting trend as early as possible. This is where the Narrow Range strategy comes into play. Its name is often shortened to NR4 and/or NR7, depending on the number of days to take into consideration for defining the range.
Disclaimer: Templates are for educational purposes only!
👉 Get the Toby Crabel NR4 Automation Template → Toby Crabel NR4 Profectus Template
This template is designed to run on the Daily Timeframe.
The Narrow Range theory is a way of quantifying how markets can move from a consolidation period (the range) to a trending period. It’s based on the logic that a narrow range can indicate a balance between buyers and sellers, which is evidence of rest. Once the price breaks out of this resting phase, price movements can become a trend leading to a clear short-term move in one direction. The trade is an attempt to catch this short-term trend as soon as the price breaks out of the range. Crabel specifically wanted to define this shift without using indicators since it resembles how Bollinger Bands compress and expand. The problem with the indicators, such as Bollinger Bands, is that they are lagging in nature.
The theory was designed to capture bullish breakout moves in equity markets where the general bias is to the upside over the long-run. We have adjusted the strategy slightly to also benefit from short-term downward trends, and this has also proven to work surprisingly well on a range of markets, including equities.
NR4 implies we’re looking for the narrowest range over the past 4 days or candles. Specifically, the range of the most recent day or candle needs to be the smallest of the 3 days or candles before that. For simplicity, let’s stick to days for the period because the template is also built for the Daily timeframe.
There is another popular variation called NR7, which is essentially the same strategy, but instead of looking at 4 days in total, the setup looks at finding the smallest range day over 7 days in total.
So, when we’re referring to the NR4 setup, the total size of the most recent daily candle is the smallest of the 3 candles before that. If this is not the case, there is no NR4 setup.
This is what the NR4 setup looks like on a chart.
.webp)
Let’s write down the rules of this trading system step-by-step.
Now, let’s build this system in Profectus AI. This is what it looks like on the Profectus AI Builder Canvas.

Let’s start building this strategy. We divide it into 3 sections.
Once automated, the Toby Crabel NR4 strategy can be deployed as:
Why MT5?
This allows you to move from manual chart analysis to mechanical automated trading.
Yes. You can already find our legendary Rychard Wyckoff strategy here as well. We can automate any legendary strategy if it’s mechanical.
If a strategy has:
It can be automated.
Want to see how this Toby Crabel NR4 strategy works when fully automated?
Access an enhanced automation template used to turn this trading concept into a deployable MQ5 trading bot inside Profectus. This template has a trade execution module included, so you can start testing it right away!
Disclaimer: Templates are for educational purposes only!
👉 Get the Toby Crabel NR4 Automation Template → Toby Crabel NR4 Profectus Template
This template is designed to run on the Daily Timeframe.
Dive into a world of knowledge, trends, and industry updates on the Variable blog. Our curated content covers a spectrum of topics.