awhipp
Montecarlo-on-MT4-Backtests
Python

Run MetaTrader 4 backtests through a Montecarlo Simulation

Last updated Dec 3, 2025
12
Stars
5
Forks
0
Issues
0
Stars/day
Attention Score
6
Language breakdown
No language data available.
Files click to expand
README

Execute MonteCarlo Simulation on MetaTrader 4 Strategy Results

What does this do

The following python script allows Forex traders who run backtests through the MetaTrader 4 platform to run a Montecarlo Simulation on their results. This script will do the following:
  • Convert your .htm file to a .csv (this is because MT4 does not output results in a usable format).
  • Run a MonteCarlo Simulation on the results and provide you with the simulation results.

To Run

Put this script in the same folder as the backtest results (typically StrategyTester.htm) and then execute py MT4ResultsTo_MonteCarlo.py and it will do the rest.

Requirements

  • Python 3.4+
  • pip
  • pip install pandas
  • pip install numpy
  • pip install pandas_montecarlo
🔗 More in this category

© 2026 GitRepoTrend · awhipp/Montecarlo-on-MT4-Backtests · Updated daily from GitHub