Skip to content
All library documents

Trading 20- and 55-Period EMA Crossovers on XAUUSD

Article Strategy library · Author: acgoldgogo

Summary

This strategy uses a fast 20-period exponential moving average and a slower 55-period exponential moving average to trade gold, identified in the description as XAUUSD. A cross of the fast average above the slow average triggers a long entry; a cross below triggers a short entry. The script plots both averages and marks crossover bars, and it includes alerts for the signals. Its declared order size is a fixed cash amount, with the strategy initialized using a stated starting capital.

The document presents the script as a way to test a moving-average crossover approach, but includes no strategy report results, market sample, or performance statistics. It therefore gives no evidence that the rules are profitable. The crossover method can react after a trend has begun, and the document does not describe stop-loss rules or additional filters. Its claims should be assessed through testing with realistic costs and across different market conditions.

Key ideas

  • A 20-period EMA is compared with a 55-period EMA to define crossover signals.
  • An upward cross opens a long position, while a downward cross opens a short position.
  • The script plots the averages, marks crossover bars, and generates alerts.
  • The document provides no backtest results or evidence of profitability.
  • It does not specify stop-loss rules or signal filters.

Tags

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