Smooth Moving Average @PuppyTherapy

Jul 23, 2019

Static chart image
Signals
Moving Averages

The Smooth Moving Average [STRATEGY] indicator provides a comprehensive backtesting framework designed to identify trend reversals and filter market noise using highly customizable moving average calculations. It allows traders to apply multiple layers of smoothing and optional Heikin Ashi data sources to create a robust trend-following system across various timeframes.

Usage

The Usage section describes how the script can be used, examples should be provided in this section. This section also focuses on how main settings affect the indicator interpretation and output.

Traders can utilize this script as a standalone strategy or as a directional filter. The strategy generates a "Long" signal when the selected moving average begins to slope upward and a "Short" signal when it begins to slope downward.

  • Trend Following: Use the color-coded line (Green for bullish, Red for bearish) to identify the current market bias.
  • Signal Generation: Triangular plot shapes appear on the chart to mark the exact bar where the trend direction shifts, serving as potential entry or exit points.
  • Backtesting: The strategy utilizes the TradingView backtesting engine, allowing users to verify the historical performance of specific moving average combinations starting from a user-defined date.

Details

The script's core logic centers on "recursive smoothing," where a moving average can be calculated using the output of a previous moving average calculation. This process significantly reduces lag while filtering out minor price fluctuations.

The strategy supports 16 different moving average types, ranging from standard SMA and EMA to more advanced types like Jurik Moving Average (JMA), Kaufmann’s Adaptive Moving Average (KAMA), and Hull Moving Average (HMA). Furthermore, the integration of Heikin Ashi candles as a source allows for further noise reduction by smoothing the price data before it ever enters the moving average calculation.

Settings

  • Use HA as source?: When enabled, the script uses Heikin Ashi Close prices instead of standard candle Close prices for calculations.
  • MA1 Length: Sets the lookback period for the moving average.
  • Nr. of MA1 Smoothings: Determines how many times the moving average calculation is applied to itself (up to 5 iterations).
  • MA Type: Selects the mathematical model for the trend line (options include SMA, EMA, DEMA, TEMA, WMA, VWMA, SMMA, Hull, LSMA, ALMA, KAMA, ZEMA, HWMA, AHMA, JURIK, and T3).
  • Backtest Start Year/Month/Day: Defines the specific starting point for the strategy's historical performance tracking.

FAQ

How do I interpret the signals on the chart? A Green triangle pointing up indicates a bullish trend shift, while a Red triangle pointing down indicates a bearish trend shift. The strategy enters a position at the close of the bar where these triangles appear.

What is the benefit of adding multiple smoothings? Increasing the "Nr. of MA1 Smoothings" makes the trend line less reactive to volatile price spikes, which helps in staying with a long-term trend but may increase entry lag.

How can I access the Smooth Moving Average [STRATEGY]? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free access on the following platforms
tradingviewSymbolTradingView
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

ninjatraderNinjaTrader
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

metatrader4MetaTrader 4/5
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

thinkorswimThinkorswim
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

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.