Linear Regression Channel Screener
Nov 25, 2024

The Linear Regression Channel Screener indicator provides real-time trend detection and multi-asset monitoring by tracking price action relative to statistical regression channels. It allows traders to monitor up to 40 different symbols simultaneously to identify bullish or bearish momentum across an entire watchlist.
Usage
The Usage section describes how the script can be used to monitor market sentiment across multiple instruments. The tool displays a dashboard in the top-right corner of the chart, showing the current trend status and price position relative to the middle regression line for each selected symbol.
- Trend Detection: Use the "Trend" column to identify whether an asset is in a bullish (positive slope) or bearish (negative slope) state.
- Price Positioning: The "Price VS Middle" column indicates if the current price is trading above or below the mean regression line, which serves as a benchmark for momentum.
- Visual Analysis: On the main chart, the indicator plots the Linear Regression Channel for the current asset, consisting of a median line and upper/lower deviation boundaries.
- Alerts: Configure alerts for channel breakouts, trend reversals, or median line crossings to stay informed of market shifts without manual monitoring.
Details
The script utilizes a linear regression algorithm to calculate the best-fit line for a given set of price data points over a specific length. This calculation determines the intercept and slope, which are then used to project the channel boundaries based on standard deviation.
The screener functionality is powered by request.security(), allowing the script to fetch data for external symbols defined in the settings. This enables the transformation of a standard single-asset indicator into a comprehensive scanning tool. The trend status is determined by the sign of the regression slope: a positive slope indicates a bullish trend, while a negative slope indicates a bearish trend.
Settings
Symbols
- Symbol 1 - 10: Define the ticker symbols you wish to monitor in the screener table.
Logic & Calculation
- Source: The price data used for calculations (e.g., Close, HL2).
- Length: The number of bars used to calculate the linear regression.
- Deviation: The multiplier for the standard deviation to determine the width of the upper and lower channel lines.
- Extend Lines: Determines whether the channel lines extend indefinitely to the right of the current bar.
Visuals
- Up/Down Trend Colors: Customize the colors used for bullish and bearish indications in both the table and the chart lines.
FAQ
How do I access the Linear Regression Channel Screener? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
How many assets can I monitor at once? While the default inputs provide 10 slots, the underlying logic supports up to 40 assets, which is the maximum limit for security calls within a single Pine Script indicator.
What does it mean when the price is "Above" or "Below" the middle? "Above" suggests the price is trading in the upper half of the regression channel, often indicating stronger bullish momentum within the current trend, while "Below" suggests it is in the lower half.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

