Skip to content
All library documents

Four-Hour EMA and Stochastic Trend Confirmation Strategy

Article Strategy library · Author: ChaoZhang

Summary

This strategy combines three exponential moving averages with a stochastic oscillator to identify and confirm medium-term trend changes. A long signal requires both the 5-period and 15-period EMAs to cross above the 50-period EMA at the same time that the stochastic K line crosses above D. The reverse set of crossovers closes a long position. The write-up presents four-hour charts as the preferred setting, while noting that other timeframes can be used.

The document argues that combining moving-average alignment with oscillator confirmation may reduce weak entries, but it supplies no performance statistics to support that claim. Its published backtest settings cover BTC/USDT on a four-hour chart over roughly a year. The source code uses a 15-period stochastic D calculation, although the prose specifies 5, so the exact oscillator setup is inconsistent. The strategy can whipsaw in ranging markets, and the text recommends position restraint, stop losses, and testing parameters by instrument and market conditions.

Key ideas

  • Long entries require the 5- and 15-period EMAs to cross above the 50-period EMA alongside a bullish stochastic crossover.
  • The described exit requires bearish crossovers in both the EMA system and stochastic oscillator.
  • The method is intended for trend conditions and may generate repeated false signals in choppy markets.
  • The prose and source disagree on the stochastic D period, so the implementation details need reconciliation.
  • The published BTC/USDT backtest settings include no performance results.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.