Backtesting Python Bot with MT5
I haven't tried it myself, as I am working completely within metatrader environment,
But I have came across this-
(Video Tutorial)
(Direct youtube link to the above video, because I seem to have problems embedding it in the message)
https://www.youtube.com/watch?v=ovKgQdiQsHE
(The github project of the above tutorial)
https://github.com/mkhushi/MQL5-Python-Backtesting
I would appreciate if you could report back if it did or didn't work,
As I am curious to know, as I myself might migrate the python in the future, but would hate losing the ability to use metatrader's strategy tester.
Good luck mate.

- mkhushi
- github.com
hello i am trying to build a bot in python i create vrtual envirmnent then import libraries and now i can able to connect to my mt5 account i try to run code
fail counldnt go through
name error occured
i try this method too but still fail
portable="False")
tell me solution i am not coder but i am learning to build a bot for my self. its been 6 month now i am able to get all this thing but on stuck on this please anyone help me out

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I write a python bot and it's working fine with mt5.all the functions that i write is correct and i use lib like metatrader5, pandas and ect for my code.
the only problem is backtesting. i know i can write a data loader and reporting system myself with python but it's too much useless work right now.
is there any backtester for mt5 that i can connect my code to it with terminals and other stuffs ?