Linear Regression Channel is a chart overlay indicator that calculates linear regression slope, intercept, and standard deviation bands over user-defined lookback windows.
Linear Regression Channel plots middle regression trendlines along with upper and lower channel boundaries based on standard deviation or average true range multipliers. The script supports up to three separate regression configurations, including standard regression bands, an overlay channel, and a future projection channel with optional direction indicators.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Plot Linear Regression Bands
bool
true
bands
Length
int
150
window
Deviation Linear Regression Bands
float
3.
devlen_b
Plot Linear Regression Channel
bool
false
channel
Channel Length
int
150
window1
Deviation Linear Regression Channel
float
1.
devlen1
Plot Future Projection of linear regression
bool
false
channel1
Plot Arrow Direction
bool
false
arr_dirc
Length
int
50
window2
Deviation Future Projection Regression Channel
float
1.
devlen2
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This indicator plots Donchian Channel boundary lines along with dynamic fan projections directly on the price chart. It calculates the highest high, lowest low, and median price over a customizable lookback period. Whenever price establishes a new channel high
Dynamic Linear Regression calculates and plots linear regression trendlines and standard deviation channels directly on the price chart over a user-selected time period. Traders can configure static channels locked at the end time, dynamic channels that contin
This indicator overlays trend-following Supertrend bands on the price chart using Average True Range calculations. It plots trailing stop lines, highlights active trend directions, and prints buy or sell shape labels when price closes across band thresholds. I
Calculates an ATR-based trailing stop overlaid on the price chart to assist with trend identification and stop placement. Using a specified ATR period and multiplier, it projects upper and lower bounds around the closing price. The stop line ratchets up during
Moon Dev Lunar Sniper is a multi-indicator overlay that scores confluence across fast and slow EMAs, RSI, MACD, DMI, and BB width to fire signals only when score meets the minimum threshold. It plots buy and sell signals on the price chart, highlights cosmic b
This overlay indicator plots a SuperTrend line on the price chart using a fixed ATR length of 10 and a factor of 3. When the trend direction is up it draws a green line and a light green fill toward the candle midpoint; when down it draws a red line and a ligh