Linear Regression

Trend Following Systems Intermediate United Kingdom FTSE100 UK100 BP HSBA VOD BARC LLOY AZN SHEL RIO

Directional - identifies trend direction using statistical best-fit line

Learn this and United Kingdom-market strategies in depth — one-time purchase, lifetime access.
Unlock full hub →

Quick Reference

Strategy Type Trend Following / Mean Reversion / Statistical Analysis
Market Outlook Directional - identifies trend direction using statistical best-fit line
Risk Profile Defined by channel boundaries or standard error bands
Reward Profile Captures trends with statistical edge and mean reversion opportunities
Time Horizon Swing to position trading (days to weeks)
Iv Environment Any - price-based statistical system
Breakeven Depends on regression period and entry point

Payoff Profile

Statistical best-fit line through price data showing trend direction, with standard deviation channels identifying overbought/oversold conditions

United Kingdom Market Details

Primary Instruments FTSE 100 index, UK single stocks (BP, HSBA, VOD, BARC, AZN, SHEL, RIO)
Fca Compliance Standard trading; options overlay requires appropriateness assessment
Contract Size £10 per point for FTSE 100 CFDs/spread bets; 1,000 shares for equity options
Trading Hours 8:00 AM - 4:30 PM GMT for LSE; futures/CFDs may have extended hours
Data Requirements Closing prices for regression calculation; real-time for active trading
Settlement CFDs and spread bets settle daily; options at expiry
Spread Betting Tax-free profits for UK residents - ideal for regression-based swing trading
Stamp Duty 0.5% on share purchases; exempt for CFDs, spread bets, and options
Regression Periods 20-50 periods common for swing trading; 100+ for position trading

Frequently Asked Questions

What period should I use for linear regression?

For swing trading, 50 periods is a good starting point. Shorter periods (20-30) are more responsive but noisier; longer periods (75-100) are smoother but slower. Test what works best for your instrument and trading style.

How is linear regression different from a moving average?

A moving average simply averages prices over a period. Linear regression finds the best-fit straight line through prices, which can show trend direction and project forward. Regression also provides R-squared to measure trend reliability.

What does it mean when price is above the regression line?

Price above the regression line means the current price is higher than the statistical 'fair value.' This could indicate bullish momentum or potential overextension. How far above (measured in standard deviations) indicates degree of overextension.

Can I use linear regression for day trading?

Yes, but use shorter periods (10-20 bars) on intraday charts. The principles are the same: slope direction for trend, channels for overextension. Be aware that shorter periods are noisier and require faster decision-making.

What's a regression channel?

A regression channel adds bands above and below the regression line, typically at ±2 standard deviations. About 95% of prices stay within these bands. Touching the upper band suggests overbought; touching lower suggests oversold.

How do I trade mean reversion with regression?

Wait for price to reach a channel boundary (e.g., lower channel at -2 StdDev) while the slope still supports your direction (positive for longs). Enter expecting price to revert toward the regression line. Exit at or near the regression line.

When should I use trend following vs mean reversion with regression?

Use mean reversion when R² is high (>0.8) and price is at channel extremes - price reliably follows the regression, so reversion is probable. Use trend following when slope is strong and consistent - enter in trend direction on pullbacks.

How do I use R-squared as a filter?

Require R² above a threshold (typically 0.7) before trading regression signals. High R² means price follows the regression line reliably. Low R² means price moves randomly - regression signals are unreliable.

What does slope flattening indicate?

Slope flattening (slope moving toward zero) indicates the trend is weakening. In an uptrend, declining slope is an early warning. If slope approaches zero, the trend may be ending. Consider tightening stops or taking profits.

How do multiple regression periods help?

Using multiple periods (e.g., 20, 50, 100) shows trend alignment across timeframes. When all are positive, the trend is strong. Divergence (short negative, long positive) warns of potential reversal. It's similar to multiple moving average analysis.

How do I calculate slope acceleration?

Slope acceleration is the change in slope over time: Current Slope - Previous Slope. Positive acceleration means the trend is strengthening; negative means weakening. This is the 'second derivative' of the regression and provides early warning of trend changes.

How do I use regression for options?

Use regression line as reference for ATM strikes. Use channels for spread short strikes (e.g., sell calls at upper channel level). Match strategy to R²: high R² = directional plays; low R² = neutral strategies. Use slope direction for delta bias.

What's the difference between standard error and standard deviation bands?

Standard deviation measures price volatility; standard error measures how well prices fit the regression line. Low standard error means high prediction accuracy. Both create bands, but standard error is specifically about regression fit quality.

How do I optimize regression parameters?

Test periods from 20-100, channel widths from 1.5-3 StdDev, and R² filters from 0.5-0.8. Look for robust zones where neighboring parameters perform similarly. Walk-forward validate to prevent overfitting.

What causes regression systems to fail?

Regression fails when: (1) Trend changes faster than regression adapts, (2) Market becomes range-bound (low R²), (3) Volatility expands beyond channels, (4) Gap events distort statistics. Use R² filter and monitor slope changes for early warning.

Related Strategies

Moving Averages
Bollinger Bands
Trend Lines
Keltner Channel
ADX
RSI
MACD
Volume

Master United Kingdom trading strategies on AlgoKing

Full guided lessons, quizzes, and a complete strategy library for the United Kingdom market. One-time purchase. No subscription, ever.

Get United Kingdom access →