Skip to content
All library documents

EMA Crossover Insights from Fast and Slow Exponential Averages

Article Strategy library · Author: ChaoZhang

Summary

This QuantConnect alpha model turns changes in the relationship between fast and slow exponential moving averages into directional price insights. Its defaults are 12 periods for the fast EMA and 26 for the slow EMA, with daily resolution. After both indicators are ready, a transition from the fast EMA being above the slow EMA to below it emits a downward insight; a transition from below to above emits an upward insight. The prediction interval is set to the chosen data resolution multiplied by the fast period.

The implementation tracks indicator state per security, warms indicators when securities are added, resets them if an initialized security is re-added, and removes consolidators when securities leave. It illustrates signal generation and data-feed lifecycle handling, rather than a complete portfolio or execution strategy. No backtest, trading results, transaction costs, risk controls, or evidence that the crossover is profitable are supplied. The model’s insights should therefore be treated as inputs for a broader algorithm, not as demonstrated standalone trading performance.

Key ideas

  • The model emits upward or downward price insights when the fast and slow EMAs cross.
  • The default fast and slow EMA periods are 12 and 26, respectively.
  • The prediction horizon scales with the selected data resolution and fast EMA period.
  • Indicators are warmed up and tracked separately for each subscribed security.
  • The document provides implementation details but no backtest results or profitability evidence.

Tags

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