All indicators

Forecast Oscillator

Feb 1, 2021

Static chart image
ForecastingOscillators

The Forecast Oscillator indicator provides a percentage-based comparison between a security's current closing price and its projected Time Series Forecast (TSF) to help traders identify trend direction and potential reversals.

Usage

The Forecast Oscillator is primarily used to determine the momentum and direction of a trend based on where the oscillator sits relative to its zero line.

  • Trend Identification: When the oscillator stays above the zero line for an extended period, it indicates that price is consistently outperforming its previous forecasts, suggesting a sustained uptrend. Conversely, remaining below the zero line for an extended period suggests a sustained downtrend.
  • Trend Changes: Traders often look for exaggerated movements in the oscillator, particularly when it crosses the zero line. A cross above zero may signal the start of a bullish move, while a cross below zero may signal a bearish turn.
  • Momentum Shifts: Rapid fluctuations or steep slopes in the oscillator line can highlight aggressive changes in market sentiment before they are fully realized in the price action.

Details

The Forecast Oscillator is rooted in linear regression analysis. Its core component is the Time Series Forecast (TSF), which calculates a projection of the price trend for the next bar. The TSF is determined by adding the linear regression value to the linear regression slope.

The oscillator itself is calculated by taking the difference between the current closing price and the TSF value of the previous bar. This difference is then converted into a percentage of the current price:

$100 \times \frac{Close - TSF_{previous}}{Close}$

By comparing the actual price to the forecasted price, the tool quantifies how much the market is deviating from its established linear trend. This specific implementation was originally developed by Kıvanç Özbilgiç.

Settings

  • Source: Determines the price data used for the linear regression and forecast calculations. While "Close" is the standard, other inputs like high, low, or hl2 can be used.
  • Length: Specifies the lookback period used for the linear regression and slope calculations. A shorter length makes the indicator more sensitive to recent price changes, while a longer length provides a smoother, more lagging forecast.

FAQ

What does a value above zero indicate? A value above zero indicates that the current price is higher than the previous bar's forecast, which typically suggests bullish momentum or an upward-trending market.

How does the Forecast Oscillator differ from a standard Linear Regression line? While a linear regression line shows the "fair value" based on a best-fit line, the Forecast Oscillator measures the percentage deviation of the actual price from a projected trend line (the TSF), making it easier to spot overextended price movements.

How can I access the Forecast Oscillator? 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.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.