Linear Regression Momentum | Lyro RS

Overview
This indicator is built around linear regression momentum, with additional layers of smoothing, valuation bands, and adaptive visualization. Its purpose is to provide traders with structured perspectives on market momentum by combining linear regression analysis, standard deviation thresholds, and versatile display modes. It integrates multiple approaches to highlight not only directional bias but also valuation extremes and potential reversals.
Originality
At its core, the script calculates momentum from a chosen source and then applies linear regression to extract slope-based information. This slope is smoothed through user-selected moving averages and used as the central momentum curve. Around this core, standard deviation bands are constructed, enabling detection of overbought and oversold zones relative to the momentum slope. The indicator offers three operational modes: Trend, which classifies directional bias based on slope relative to a dynamic midline; Valuation, which evaluates whether momentum is extended toward extremes; and Reversals, which identifies potential turning points when slope and price action diverge. Each mode is supported by visual cues, colored candles, standard deviation envelopes, and a configurable table summarizing active states.
In terms of originality, this script distinguishes itself by unifying linear regression momentum with Heikin Ashi transformations, customizable standard deviation envelopes, and multi-mode logic within one framework. Rather than providing a single fixed interpretation, it allows the user to adaptively switch between momentum-driven trend following, valuation-based overextension analysis, and reversal detection. This modularity is combined with flexible display features, custom color palettes, and integrated alert conditions, enabling a single tool to serve different trading approaches without the need for multiple overlapping indicators.
Key Features
The script offers a wide range of inputs for customization.
- Momentum settings include source selection, momentum length, linear regression length, moving average type, and smoothing length, which together define the sensitivity and smoothness of the momentum calculation.
- Standard deviation band settings allow users to choose whether zero or a dynamic midline is used, as well as the lookback length and the multiplier for band scaling, controlling the width of the envelope.
- Display settings enable switching between Heikin Ashi and Classic visualizations, as well as selecting the operating mode (Trend, Valuation, or Reversals). Users can also define the color palette through predefined themes or fully custom bullish and bearish colors.
- Table settings control whether a status table is shown, its size, and its position on the chart. An overlay option is available if users prefer table placement over existing chart elements.
- Additional visualization features include dynamic bar coloring, Heikin Ashi-based slope representation, standard deviation bands with shaded fills, and plotshapes highlighting reversal or overextension signals. Alerts are integrated for each mode, allowing traders to receive notifications when long or short conditions are identified under trend, valuation, or reversal logic.
Summary
In summary, this indicator provides a structured framework for analyzing momentum through linear regression, enhanced with volatility envelopes and adaptive display logic. Its design emphasizes flexibility, enabling traders to view the same momentum data through different analytical lenses—trend continuation, valuation extremes, or reversals—while maintaining clear visualization and optional alerts for actionable decision support.
⚠️Disclaimer
This indicator is a tool for technical analysis and does not provide guaranteed results. It should be used in conjunction with other analysis methods and proper risk management practices. The creators of this indicator are not responsible for any financial decisions made based on its signals.
Script sob convite
Somente usuários aprovados pelo autor podem acessar este script. Você precisará solicitar e obter permissão para usá-lo. Normalmente, essa permissão é concedida após o pagamento. Para obter mais detalhes, siga as instruções do autor abaixo ou entre em contato diretamente com LyroRS.
O TradingView NÃO recomenda pagar ou usar um script ao não ser que você confie totalmente no seu autor e compreende como isso funciona. Você pode também encontrar alternativas gratuitas e de código aberto em nossa comunidade de scripts.
Instruções do autor
Aviso legal
Script sob convite
Somente usuários aprovados pelo autor podem acessar este script. Você precisará solicitar e obter permissão para usá-lo. Normalmente, essa permissão é concedida após o pagamento. Para obter mais detalhes, siga as instruções do autor abaixo ou entre em contato diretamente com LyroRS.
O TradingView NÃO recomenda pagar ou usar um script ao não ser que você confie totalmente no seu autor e compreende como isso funciona. Você pode também encontrar alternativas gratuitas e de código aberto em nossa comunidade de scripts.