Python and Metatrader for Backtesting

 

Hello all new here , could anyone help me with regards to connecting python to metatrader for backtesting purposes so code written in python can be backtested on metatrader without having to code it in mql4. 

I am aware that there is functionality with regards to connecting python to MetaTrader for live trading but there isn't much information out there with respect to backtesting purposes so if anyone can shed any light on this it would be greatly appreciated. 


Thank you very much in advance !

 

Well ... there's some frameworks in python for backtesting trading strategies, but it's not as good/advanced as the mt tester is.

For example ...

https://kernc.github.io/backtesting.py/

Somebody should ... implement a backtester in the mt module, or allow python in the mt tester - but it's not easy to do, it's not for tomorrow
Backtesting.py - Backtest trading strategies in Python
  • reviews: 1
  • kernc.github.io
Fast Python framework for backtesting trading and investment strategies on historical candlestick data.