Skip to content
All library documents

EMA Crossover Signals with Fixed Position Sizing and Percentage Levels

Article Strategy library · Author: ChaoZhang

Summary

This strategy uses a fast and slow exponential moving average crossover to generate long and short entries. The supplied defaults are a 20-period fast EMA and a 50-period slow EMA. Position quantity is fixed, while a percentage input is used in calculations for stop-loss and take-profit levels based on the average entry price. The accompanying explanation presents these levels as a way to define trade risk and reward.

The source code plots those price levels but does not submit exit orders using them, so the implementation shown does not enforce the described stop-loss or target. It also contains no reported backtest results, despite listing a BTC/USDT futures test interval. EMA crossovers can lag and may generate repeated reversals in sideways markets; the document itself notes sensitivity to parameter selection and overfitting risk. Fixed quantity also does not keep account risk constant as price or account equity changes.

Key ideas

  • A fast EMA crossing above or below a slow EMA triggers long or short entries.
  • The listed defaults use 20 and 50 periods for the fast and slow averages.
  • The source plots percentage-based stop and target levels but does not place orders to enforce them.
  • Fixed trade quantity does not scale risk with price or account equity.
  • The document reports no backtest performance and notes the risk of whipsaws and parameter overfitting.

Tags

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