Statistic Functions

Time Series Forecast (Linear Regression Forecast) (TSF)

Time Series Forecast

Deep Dive

Everything You Need to Know

Under the Hood

How It Works

TSF uses linear regression to project the next period's price based on the trend over a specified lookback period (default 14). It fits a least-squares regression line through recent price data and extends it one period forward, providing a statistical forecast. TSF essentially answers 'If the current trend continues at its mathematical rate, where will price be next bar?' The output is a price projection that can serve as a predictive trendline. TSF combines the trendline from LINEARREG with a one-period forward projection.

In Practice

How Traders Use It

Cryptocurrency traders use TSF as a predictive moving average or trend-following indicator. When price crosses above TSF, it signals upward momentum exceeding the forecast; crossing below suggests downward pressure. TSF can serve as a dynamic support/resistance level or trend filter. It's particularly valuable for mean-reversion strategies (trading deviations from TSF) or trend continuation systems (trading in TSF's direction). Combined with LINEARREG_SLOPE to assess trend strength or LINEARREG_ANGLE for trend steepness, TSF provides statistically-grounded trend following. Popular among quantitative traders and those preferring mathematical indicators over traditional MAs.

Highlights

TSF at a Glance

Linear regression-based price forecast
Projects next period's price from current trend
Acts as predictive moving average
Price crossing TSF generates trend signals
Default 14-period lookback
Combines LINEARREG with forward projection
Useful for trend following and mean reversion
Can serve as dynamic support/resistance
Popular among quantitative and mathematical traders

Get Started

Automate TSF with cryptorobot.ai

Build automated strategies using Time Series Forecast (Linear Regression Forecast) and hundreds of other indicators. Connect to your favourite exchange and let the bot execute trades 24/7 — no code required.