Skip to content
All library documents

EMA Crossover Entries with Percentage-Based Stops and Targets

Article Strategy library · Author: ChaoZhang

Summary

This strategy uses a fast and a slow exponential moving average to generate directional signals. A fast EMA crossing above the slow EMA opens a long position, while a cross below opens a short position. Positions can close at a percentage-based take-profit or stop-loss level, or when an opposite crossover triggers a reversal. The published configuration uses 10- and 20-period EMAs and sets both exit percentages to 1%; trade direction and test dates are configurable.

The description presents the approach as simple to implement and adaptable across market cycles. It warns that repeated crossovers in sideways markets can cause successive losses, and that poorly chosen EMA periods can make signals too frequent or delayed. The document provides settings and a short BTC/USDT futures test window, but reports no performance results. Its code also sets the date-range condition to always true, so the configured dates do not appear to restrict entries in the supplied implementation.

Key ideas

  • A fast EMA crossing above a slow EMA signals a long entry, while a downward cross signals a short entry.
  • Positions use percentage-based profit targets and stop losses, with opposite crosses also prompting reversals.
  • The sample parameters use 10- and 20-period EMAs and 1% for both exit thresholds.
  • Sideways markets can produce repeated losing signals, and EMA choices can make entries too frequent or late.
  • The published test settings contain no reported performance evidence, and the implementation's date filter is always enabled.

Tags

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