Skip to content
All library documents

EMA Crossover Trend Strategy with Take Profit and Stop Loss

Article Strategy library · Author: ChaoZhang

Summary

This strategy uses a 10-period EMA and a 20-period EMA to generate directional signals. A cross of the short EMA above the long EMA opens a long position; a cross below opens a short position. It closes existing positions at a signal and sets take-profit and stop-loss exits. The described implementation uses a variable to record the last crossover, though the source does not show that variable filtering repeat signals beyond assigning it a value.

The document presents the system as a basic trend-following approach and notes that crossovers can whipsaw, especially in ranging markets. Its listed parameters include a lot size of 1, a take-profit level of 600, and a stop-loss level of 200. A published backtest setup covers BTC/USDT futures from October 30 to November 6, 2023, but no performance results are provided. The document also cautions that trading costs are omitted and suggests testing other EMA periods, adding filters, and adapting exits to market conditions.

Key ideas

  • A 10-period EMA crossing above or below a 20-period EMA determines long or short direction.
  • The described system closes current positions at a new crossover and sets take-profit and stop-loss exits.
  • EMA crossover signals can be unreliable in ranging markets and may produce whipsaws.
  • The published backtest setup does not include performance results or trading costs.
  • Testing alternative parameters and adding filters are proposed as possible improvements.

Tags

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