Trend Volatility Tops and Bottoms
Jan 3, 2022

The Trend Volatility Tops and Bottoms indicator provides a specialized oscillator that tracks price distance from linear regression-based trend lines to identify potential trend reversals and exhaustion zones.
Usage
This tool is primarily used to identify potential market bounces by measuring the distance between price and dynamic support/resistance levels. The oscillator consists of several key components:
- Directional Lines: The green line tracks the distance from the lower support band, while the red line tracks the distance from the upper resistance band. When these lines approach the zero level, it suggests price is nearing a potential trend-line bounce.
- Volatility Metric: The blue gray-toned lines represent the volatility band. A narrowing gap between these lines indicates low volatility, while a widening gap suggests high volatility.
- Signals (Circles):
- Green/Blue: These represent potential buy zones. Green circles indicate critical bounce areas, while blue suggests a preliminary area of caution for a possible price increase.
- Red/Purple: These represent potential sell zones. Red circles indicate critical rejection zones, while purple suggests preliminary caution for a possible price drop.
The indicator is optimized for longer-term analysis, specifically on the 4-hour timeframe for assets that demonstrate lower average volatility.
Details
The script utilizes linear regression to determine the "true" center of the current price trend over a specified lookback period. It then calculates dynamic bands based on standard deviation. Unlike standard Bollinger Bands, this script visualizes the distance from these bands as an oscillator, making it easier to spot extreme deviations. The "Pre-Signal" conditions (purple and blue) are triggered when price crosses the volatility threshold before reaching the final critical zero level.
Settings
- Source: Determines the price data used for calculations (default is Close).
- Length: Sets the lookback period for the linear regression and standard deviation.
- SMA Length: Sets the smoothing period for internal calculations.
- Offset: Shifts the linear regression calculation forward or backward.
- Buy Deviation: Sets the number of standard deviations for the lower support line.
- Sell Deviation: Sets the number of standard deviations for the upper resistance line.
- Dist To Zero Buy/Sell: Adjusts the sensitivity of the bounce signals relative to the zero line.
FAQ
How do I access the Trend Volatility Tops and Bottoms?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
What is the difference between the solid and transparent circles?
Solid circles (Red/Green) represent critical zones where price has reached the defined deviation levels, whereas transparent or alternate colored circles (Purple/Blue) represent a preliminary "caution" zone where volatility is expanding but price hasn't yet hit the peak deviation.
Which timeframes work best for this indicator?
While it can be used on various intervals, it is intended for the 4-hour timeframe to capture more reliable long-term trends on less volatile assets.
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.