In this article we introduce Python-MetaTrader5-like ways of handling trading operations such as opening, closing, and modifying orders in the simulator. To ensure the simulation behaves like MT5, a strict validation layer for trade requests is implemented, taking into account symbol trading parameters and typical brokerage restrictions.
The ability to use tick data from a particular period in the past and use it simulate a trading operation means that we are a few steps away from finalizing our custom simulator. Right now we have everything needed to create a loop that runs the simulation through all available ticks in specified time range. This is what we call strategy testing or a complete simulation.
In this article, we discussed the most important aspect of any trading simulator, that is, sending trading requests and managing them.
Check out the new article: Python-MetaTrader 5 Strategy Tester (Part 03): MT5-Like Trading Operations — Handling and Managing.
In this article we introduce Python-MetaTrader5-like ways of handling trading operations such as opening, closing, and modifying orders in the simulator. To ensure the simulation behaves like MT5, a strict validation layer for trade requests is implemented, taking into account symbol trading parameters and typical brokerage restrictions.
The ability to use tick data from a particular period in the past and use it simulate a trading operation means that we are a few steps away from finalizing our custom simulator. Right now we have everything needed to create a loop that runs the simulation through all available ticks in specified time range. This is what we call strategy testing or a complete simulation.
In this article, we discussed the most important aspect of any trading simulator, that is, sending trading requests and managing them.
Author: Omega J Msigwa