Skip to content
All library documents

Moving Average Crosses with Delayed Bar Entries

Article MQL5 code base

Summary

This expert advisor generates a trading signal when price crosses a moving average, then waits for a configurable number of minutes after the current bar opens before acting. Before opening a position in one direction, it closes positions in the opposite direction. The document reports tick-mode backtest results across several currency pairs, with mixed outcomes: some pairs show positive profit and profit factors above one, while others lose money. Reported equity drawdowns are high across the examples.

The table gives multiple performance measures, including profit, expected payoff, recovery factor, Sharpe ratio, drawdown, and trade count. These figures make the symbol dependence and risk visible, but the text does not provide the test dates, data quality, costs, parameter-selection process, or out-of-sample results. The results alone do not demonstrate a durable edge; the losses and large drawdowns caution against treating the favorable rows as proof of profitability. The strategy's waiting period and moving-average settings would need independent validation, including realistic transaction costs and risk controls.

Key ideas

  • The EA signals when price crosses a moving average and delays entry by a configurable number of minutes from bar open.
  • It closes positions in the opposing direction before opening a new trade.
  • Reported currency-pair backtests have mixed outcomes, with both gains and losses.
  • The examples show high equity drawdowns, including on pairs with positive reported profit.
  • Missing test dates and validation details limit conclusions about whether the strategy has an edge.

Tags

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