All indicators

Supertrend with EMA

Feb 21, 2019

Static chart image
SignalsMoving AveragesTrailing-StopVolatility

The Supertrend with EMA indicator provides a trend-following signal mechanism that utilizes an Exponential Moving Average (EMA) as its primary source to filter price noise and identify potential trend reversals.

Usage

The Usage of the Supertrend with EMA focuses on identifying the prevailing market direction through a dynamic trailing stop line.

  • Trend Identification: When the price (EMA) is above the trailing stop line, the trend is considered bullish, and the line is colored green. Conversely, when the price is below the line, the trend is bearish, and the line is colored red.
  • Entry Signals: The script plots upward arrows below the bars when a bullish trend begins and downward arrows above the bars when a bearish trend begins.
  • Stop Loss Placement: The trailing line can be used as a dynamic stop-loss level that adjusts based on volatility and the underlying EMA trend.

Details

This script differentiates itself from standard Supertrend versions by using an EMA of the closing price instead of the raw price as the calculation base. By applying a multiplier (Factor) to the Average True Range (ATR), the script creates bands around the EMA. The logic ensures the trailing stop only moves in the direction of the trend until a crossover occurs, at which point the trend flips. This smoothing effect from the EMA helps in reducing whipsaws in sideways markets compared to traditional price-based Supertrend indicators.

Settings

  • EMA Period: Sets the lookback period for the Exponential Moving Average used as the calculation source.
  • ATR Period: Determines the number of bars used to calculate the Average True Range for volatility measurement.
  • Factor: A multiplier applied to the ATR to determine the distance of the trailing stop from the EMA.

FAQ

How do I interpret the arrows on the chart?

The green upward arrows indicate the start of a bullish trend, while the red downward arrows signal the start of a bearish trend.

Can I use this for scalping or long-term trading?

Yes, by adjusting the EMA and ATR periods, you can tune the sensitivity for different timeframes and trading styles.

How can I access the Supertrend with EMA?

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.