All indicators

MA Candles - Supertrend

Feb 27, 2021

Static chart image
SignalsCandlestickMoving AveragesTrailing-StopVolatility

The MA Candles - Supertrend indicator provides a smoothed trend-following framework by calculating a Supertrend logic directly on synthetic candles derived from moving averages. This approach aims to filter out market noise and offer a more robust representation of trend direction and potential reversal points compared to standard price-based Supertrends.

Usage

The tool can be used to identify primary trend directions and potential entry points during pullbacks. Users can interpret the indicator through two main components:

  • Moving Average Candles: These candles represent smoothed price action. When the synthetic candles are bullish (green) and the Supertrend line is below price, the environment is considered trending upwards.
  • Supertrend Trailing Stop: The line changes color based on the trend direction. A green line indicates a bullish trend, while a red line indicates a bearish trend.

Examples of Signal Interpretation:

  • Trend Reversals: A change in the Supertrend color (e.g., from red to green) signals a potential shift in market regime.
  • Pullbacks: A bullish pullback occurs when the Supertrend is green, but the price crosses below the high of the moving average candle, suggesting a temporary retracement in an uptrend. Conversely, a bearish pullback occurs when the Supertrend is red, but price crosses above the low of the moving average candle.

Details

The script functions by first calculating a specific moving average (EMA, SMA, HMA, etc.) for the Open, High, Low, and Close prices to create "MA Candles." It then calculates the Average True Range (ATR) based on these smoothed values. The Supertrend logic is then applied to these smoothed inputs rather than raw price data, which significantly reduces whipsaws in choppy market conditions.

Settings

  • Timeframe: Allows the user to calculate the indicator based on a different timeframe than the current chart.
  • Moving Average Type: Select the smoothing method used for the candles (Options: EMA, SMA, HMA, RMA, VWMA, WMA).
  • Loopback Bars: Sets the period length for both the moving average calculations and the ATR.
  • ATR Multiplier: Determines the distance of the Supertrend trailing stop from the smoothed price.
  • Wicks: Toggles the inclusion of wicks in the Supertrend calculation logic.

FAQ

How do I use the alerts for this indicator? The indicator includes built-in alerts for Bullish/Bearish Crossovers (trend changes) and Bullish/Bearish Pullbacks (potential entries within an established trend). You can configure these via the TradingView Alert menu.

Can I change the smoothing method? Yes, you can choose between six different moving average types in the settings menu to better suit the volatility of the asset you are trading.

How can I access MA Candles - Supertrend? 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.