Linear Regression ++

Published on MillionChart by CryptoTrader.

Linear Regression ++ is a feature-rich version of a linear regression channel, built after requests from traders. The core regression calculation comes from the author's earlier linear regression script, which should be used by anyone who wants the plain formula.

Features:
- Multi-timeframe: take the regression source from a different chart timeframe.
- Customisable colours, including the plotted lines.
- Smoothing for a filtered regression. A value of 1 gives the original line, and 1 is the default.
- Alerts when price crosses the channel or range.

How to use:
- Use it to look for breakouts and reversals around the channel.
- It is meant to support other tools rather than be used alone.

Risks:
- Like Bollinger Bands, it can mislead inside a strong trend. Signals may keep pointing the same way while the market is already reversing.

Feature requests from users were welcome.