Three EMAs Trend-following Strategy
Oct 7, 2021

The Three EMAs Trend-following Strategy indicator is a comprehensive trading tool designed to capture market momentum by utilizing multiple moving average crossovers and a dynamic volatility stop.
Usage
The strategy is primarily used to identify and trade emerging trends by requiring price to cross above three different Exponential Moving Averages (EMAs) simultaneously. This triple-confirmation mechanism helps filter out market noise and reduces the frequency of false signals.
Users can employ the indicator on various timeframes, though it is particularly effective on medium timeframes like the 4-hour chart. The strategy provides clear entry and exit signals:
- Entry: A long position is initiated when the price crosses above the 7, 14, and 21 EMAs on the same candle.
- Exit: Positions are closed based on either a fixed percentage take profit or when the price crosses below the Volatility Stop (VStop).
Details
The script utilizes three EMAs of varying lengths (Short, Mid, and Long) to gauge the immediate trend direction. By requiring all three crossovers at once, the strategy ensures that a strong momentum shift is occurring.
To manage risk, the script implements a Volatility Stop (VStop). This component acts as a trailing stop loss that adapts to the asset's current volatility, tightening during strong trends and allowing more room during consolidated phases. This dual-exit approach (fixed profit target vs. dynamic stop) allows for locking in gains while protecting against sudden trend reversals.
Settings
Time Range
- From/Thru Month/Day/Year: Defines the backtesting period for the strategy.
- Show Date Range: Toggles the visibility of the date range filter.
Strategy Parameters
- EMA Short Length: The period for the fastest EMA (default is 7).
- EMA Mid Length: The period for the medium EMA (default is 12).
- EMA Long Length: The period for the longest EMA (default is 21).
- Take Profit (%): The fixed percentage target for closing profitable trades.
Volatility Stop (VStop)
- VStop Length: The period used for the ATR calculation within the volatility stop.
- VStop Source: The price source used to calculate the stop level.
- VStop Multiplier: The factor applied to the ATR to determine the distance of the stop loss from the price.
FAQ
How do I access the Three EMAs Trend-following Strategy?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Which timeframe is best for this strategy?
While it can be used on various intervals, backtesting suggests it performs best on medium timeframes such as the 4-hour (4H) chart.
Can I change the EMA lengths?
Yes, the lengths of the three EMAs are fully customizable in the settings menu to suit different market conditions or asset classes.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.