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.
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.

