Direct Answer
Time series forecast, or TSF, fits a least-squares straight line to the latest N values and extends that line one bar ahead. It is a linear extrapolation of the recent trend, not a model of the process behind the data. TSF above the current price means the fitted trend points above where price sits, and below means the opposite.
Time Series Forecast: Formula, Meaning, Signals, Examples and How to Use It
How Is Time Series Forecast Calculated?
Time series forecast, or TSF, fits a least-squares straight line to the latest N values and extends that line one bar ahead. It is a linear extrapolation of the recent trend, not a model of the process behind the data.
Formula: TSF = LinReg(N) + slope, where LinReg(N) is the fitted value at the latest bar and slope is the per-bar slope of the N-bar regression line
Inputs:
- Close prices
- Regression length N
- Fitted value and slope of the regression line
Worked example. A regression endpoint of 105.0 with a slope of 0.4 per bar projects to 105.4 one bar ahead. The inputs are illustrative numbers, not market data.
Reading it. TSF above the current price means the fitted trend points above where price sits, and below means the opposite. The difference between price and TSF is often used as an oscillator. It extrapolates, it does not predict.
Limits. A straight line does not capture reversals or volatility changes, and the forecast jumps when old bars leave the window. Projecting forward can badly overshoot in turning markets.
What is Time Series Forecast?
Time series forecast, or TSF, fits a least-squares straight line to the latest N values and extends that line one bar ahead. It is a linear extrapolation of the recent trend, not a model of the process behind the data.
How to use Time Series Forecast
TSF above the current price means the fitted trend points above where price sits, and below means the opposite. The difference between price and TSF is often used as an oscillator. It extrapolates, it does not predict. A reading alone is never a buy or sell signal; it needs context from price structure, volume, volatility and the broader market regime.
Strengths
- It extends the fitted line by one bar using the same least-squares fit as the regression value, so the projected step is simply the slope.
- The calculation needs only the latest N values, so it requires no model parameters beyond the window length.
- Reproducible when the formula and data convention are fixed.
Weaknesses and limitations
- The line weights all N bars equally, so the projection responds to the whole window rather than to the last few bars.
- It projects only one bar ahead, so the output is a short extrapolation of the fit and says nothing about any longer horizon.
- Correlated indicators can create false confidence by repeating the same underlying information.
Editorial and risk note
This page is educational content, not individualized investment advice. It should not imply guaranteed prediction, accuracy or outperformance.
Frequently Asked Questions
Is Time Series Forecast a buy or sell signal?
No. TSF above the current price means the fitted trend points above where price sits, and below means the opposite. A straight line does not capture reversals or volatility changes, and the forecast jumps when old bars leave the window. A trade built on it still needs a trigger, an invalidation rule, a position size and realistic execution assumptions.
What is the best setting for Time Series Forecast?
Time Series Forecast takes these inputs: close prices; regression length N; fitted value and slope of the regression line. There is no universal best setting for the tunable ones, so test them across instruments, regimes and out-of-sample periods and favor stable parameter regions over one historical winner.
Can Time Series Forecast be used by itself?
A straight line does not capture reversals or volatility changes, and the forecast jumps when old bars leave the window. Projecting forward can badly overshoot in turning markets. For that reason it is read next to measures of direction, participation, valuation, liquidity and risk, not alone.
Does Time Series Forecast work on every timeframe?
The calculation (TSF = LinReg(N) + slope, where LinReg(N) is the fitted value at the latest bar and slope is the per-bar slope of the N-bar regression line) can be run on any bar size, but behavior is not portable: a reading on a five-minute chart describes a very different market window from the same reading on a daily chart. Validate the exact timeframe before relying on it.
Why does Time Series Forecast give false signals?
The line weights all N bars equally, so the projection responds to the whole window rather than to the last few bars. It projects only one bar ahead, so the output is a short extrapolation of the fit and says nothing about any longer horizon. Lag, noise and regime changes add to this, because market participants react to new information after the reading is calculated.
How should Time Series Forecast be backtested?
Rebuild Time Series Forecast from close prices using point-in-time data, write the rules before testing, include delisted securities where relevant, model realistic fills and costs, reserve a validation sample and compare with a simpler baseline.