Volatility Range Breakout Strategy
Apr 26, 2023

The Volatility Range Breakout Strategy indicator uses deviations of high-low volatility to identify potential bullish and bearish breakouts based on price movement relative to dynamically weighted bands.
Usage
The Volatility Range Breakout Strategy can be used to identify trend entries and exits based on volatility-weighted boundaries.
- Bullish Breakout: An entry signal is generated when the price closes above the upper volatility band.
- Bearish Breakout: An entry signal is generated when the price closes below the lower volatility band.
- Exits: The strategy offers two primary methods for closing positions:
- Volatility MA: Positions are closed when the price crosses the central average line. This is the default setting and is designed to capture longer-duration trends.
- Range Crossover: Positions are closed when the price falls back inside the band it broke out from (e.g., crossing back under the upper band for a long trade).
Details
The script calculates volatility by evaluating the high-low range over a specific lookback period and dividing it by the average of that range. This calculation determines the expected price deviation.
To form the bands, the script calculates high and low ranges by adding or subtracting the product of current volatility and the closing price. These ranges are then smoothed using a volatility-weighted moving average (WMA) to create the final upper and lower bands. This weighting ensures that the bands react proportionally to changes in market activity, expanding during periods of high volatility and contracting during consolidation.
Settings
- Average Length: The lookback period used for the volatility-weighted moving average and the construction of the bands.
- Volatility Length: The lookback period used to determine the highest and lowest values for the volatility calculation.
- Volatility Source: The price source used to calculate the volatility metrics (default is Close).
- Exit Source: The price source used to trigger exit signals (default is Close).
- Exit Type: Determines the logic for closing trades, choosing between the "Volatility MA" (central line) or "Range Crossover" (the band itself).
FAQ
How do I use the Volatility Range Breakout Strategy?
You can use it to automate or identify breakout opportunities. When price breaches the outer bands, it indicates a momentum shift, while the central average serves as a trailing exit point to protect gains.
What is the difference between the exit types?
The "Volatility MA" exit is more conservative, attempting to follow a trend until price returns to its mean. The "Range Crossover" exit is more aggressive, closing the trade as soon as the price retreats from its breakout level back into the volatility range.
How can I access this indicator?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.