Multi Deviation Scaled Moving Average
Jul 29, 2024

The Multi Deviation Scaled Moving Average indicator provides a comprehensive trend analysis system by combining eight adaptive Deviation Scaled Moving Averages (DSMA) into a single visual tool for assessing market momentum and volatility.
Usage
The script serves as a multi-layered trend confirmation tool. Traders can use it to identify the prevailing market bias through several visual components:
- Trend Direction and Strength: The primary moving average line changes color and intensity based on the aggregate trend strength of the eight underlying DSMAs. Brighter greens indicate strong bullish momentum, while brighter reds indicate strong bearish momentum.
- Trend Percentage Histogram: A unique dashboard-style histogram appears in the corner of the chart, displaying the percentage of bullish vs. bearish bias. This provides a quick quantitative reading of market sentiment.
- Signal Markers: Diamond-shaped plots appear on the chart when specific trend strength crossovers occur. These markers highlight potential transition points or areas where trend momentum is shifting significantly.
- Multi-Faceted Analysis: Because the tool uses eight different periods simultaneously, it acts as a filter that reduces noise common in single-period moving averages.
Details
The core of this tool is the Deviation Scaled Moving Average (DSMA) developed by John Ehlers. The DSMA is an adaptive moving average that modifies its alpha (smoothing factor) based on the standard deviation of a filtered price cycle.
In this implementation, the tool calculates eight distinct DSMAs with incrementally increasing periods. The "Sensitivity" setting determines the gap between these periods. By comparing these multiple averages against a baseline (the longest period), the script calculates a "Trend Score." This score determines the final color of the line and the percentage values shown in the histogram.
Settings
- Period: Sets the base calculation period for the first DSMA in the sequence.
- Sensitivity: Determines the step size between the eight DSMA periods. A lower sensitivity value results in a larger step, making the indicator react more slowly to price changes.
- Source: The price data used for the calculation (default is HLC3).
FAQ
How do I interpret the diamond signals? The diamond markers appear when the internal trend score crosses specific thresholds (0.3 for bullish shifts and 0.7 for bearish shifts), indicating a potential change in market leadership.
What is the benefit of using multiple DSMAs instead of one? Using a cluster of DSMAs allows the indicator to see "under the hood" of a trend. It measures how many different time horizons are in agreement, providing a more robust signal than a single moving average.
How can I access the Multi Deviation Scaled Moving Average? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Unlock Unlimited Access to the LuxAlgo Library
Upgrade your plan to get all indicators, strategies, charts, and full access to Quant, our AI agent.
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.

