Skip to content
All library documents

Manual Historical Strategy Testing with Candle-by-Candle Order Simulation

Article MQL5 code base

Summary

This document describes a MetaTrader indicator assistant for reviewing trading signals against historical price data. The user advances through chart history, marks buy, sell, and close decisions, and can manage positions with stop-loss and take-profit levels. Its key timing convention restricts decisions to candle closes and models order opening at the next candle’s open; stop or target exits occur at the specified order price within the active area. The tool is intended to help users understand how signals and order triggers behave during a replay.

The assistant can track open positions, flag trading errors, and produce balance information and exported spreadsheet results. The article also outlines a workflow for plotting signals on another timeframe before enabling order processing for profitability testing. It recommends backing up result files because repeated names may overwrite earlier tests. This is a manual testing aid, not evidence of a strategy’s edge; the document reports no specific performance results and emphasizes that outcomes depend on strategy setup and test configuration.

Key ideas

  • The assistant replays historical candles to help inspect strategy signals and order behavior.
  • It permits trade decisions at candle close and models entry at the following candle open.
  • Stop-loss and take-profit orders can be adjusted, subject to distance and freeze constraints.
  • It records balance data and can export test results for later comparison.
  • Signal plotting across timeframes and enabled order processing are described as separate testing stages.
  • The document gives testing workflow guidance but no evidence that any strategy is profitable.

Tags

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