Beginner. Need help backtesting a python bot with real-time order management

 

Hey good people, I'm about three months into my algo trading/coding journey and I have managed to whip up a live MT5 trading bot using python that does exactly what I want it to do. It works purely off OHLC data, pure price action; it is also time based (starts running from 7am UTC everyday) and lastly, there is an order management functionality integrated that updates and/or deletes pending stop order (I only use stop orders)

I have gotten to this stage but now I want to backtest it, but I don't want to mess with the logic so I get the right results

Any advice will help, thank you

This is my first post here, happy to be here with you all

Cross-Platform Expert Advisor: Order Manager
Cross-Platform Expert Advisor: Order Manager
  • www.mql5.com
This article discusses the creation of an order manager for a cross-platform expert advisor. The order manager is responsible for the entry and exit of orders or positions entered by the expert, as well as for keeping an independent record of such trades that is usable for both versions.