You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Check out the new article: Building a Trade Replay Tool in MQL5.
In the previous article, Building a Bar Replay Tool in MQL5, we took the first step toward creating a chart replay experience by developing a replay mechanism that reveals historical candles one bar at a time. The tool also introduced Buy and Sell controls, allowing users to manually open a single paper trade while progressing through historical price action. Although this provides a useful foundation for studying market behavior, the implementation has two important limitations:
In this article, we will extend the concepts introduced in the bar replay tool to build a Trade Replay Tool capable of automatically reconstructing historical trades within a user-defined time range. The tool will retrieve the relevant historical trade events and recreate them as paper trades at their original execution times, preserving key trade properties such as the entry price, volume, Stop Loss (SL), and Take Profit (TP). As the replay progresses and reaches the corresponding historical exit event, the simulated position will be closed automatically.
Author: Chukwubuikem Okeke