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.

By Swoopr Editorial Team AI-assisted research, human-verified

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:

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

Weaknesses and limitations

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.

Swoopr Editorial Team

The Swoopr Editorial Team produces independent investment education, research, and tools for understanding markets, evaluating opportunities, and managing risk. All content is educational only and does not constitute personalized investment advice.

See our editorial policy and corrections policy.