Hierarchical EMA Trend Strategy with EMA-Based Exits
Summary
This long-only trend strategy requires a specific alignment among a 50-period EMA, three 20-period EMAs calculated from high, low, and close prices, and a 5-period close EMA. It also requires the current close to be above the relevant averages. Once the conditions align, the system enters a long position if none is open. It closes when price falls below the 5-period EMA or the 20-period EMA calculated from lows, using those averages as an early profit exit and a protective level respectively.
The published settings describe a daily Bitcoin futures backtest across several years, but no performance statistics are included. The document presents the layered alignment as a way to filter entries and manage exits, while acknowledging that moving averages lag, sideways markets may prompt frequent trades, and strict conditions can miss opportunities. The method has no short entries in the source, and the code uses close-based exit checks rather than demonstrating guaranteed stop execution. Its stated consistency in trending markets is not supported by reported test results.
Key ideas
- A long entry requires a bullish ordering of the 50-, 20-, and 5-period EMAs and price above the averages.
- The 20-period EMAs are calculated separately from high, low, and close prices.
- The strategy exits when the close falls below the 5-period EMA or the 20-period low EMA.
- The source implements long positions only and does not report backtest performance.
- Lagging signals and sideways-market whipsaws are identified as limitations.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.