All indicators

Smooth Moving Average @PuppyTherapy

Jul 23, 2019

Static chart image
SignalsMoving 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 indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.