unknown 06e23e1d7a fix: batch backtest lot size, DD% formula, max position exposure
- mt5_batch_backtest.py / view_batch_backtest.py: fix update_param to
  clear MT5 .set flag bit 2 (use-default) and update default field so
  manual lot size actually takes effect
- view_portfolio_master.py: Max DD% now uses deposit not running peak,
  Max Position Exposure rebuilt as proper timeline sweep
- view_portfolio_builder.py: Max DD% formula aligned to match master
- view_portfolio_master.py / view_portfolio_builder.py: results table
  now shows full stats columns including Stability score
2026-04-13 15:46:52 +10:00
2026-04-12 18:25:46 +10:00

MT5 Tools

Standalone Streamlit dashboard for MT5 trade analysis and comparison.

Setup

cd C:\Users\pc\MT5Tools
pip install -r requirements.txt

Launch

streamlit run app.py

Files

MT5Tools\
├── app.py                  ← main Streamlit app
├── mt5_parser.py           ← parsers for all 3 formats + stats
├── mt5_batch_backtest.py   ← batch backtest runner (copy from ea\)
├── set_comparator.py       ← EA set file comparator (copy from ea\)
├── requirements.txt
├── mt5_batch_config.json   ← gitignored, created on first run
└── pages\
    ├── trade_analysis.py   ← single report analysis
    ├── trade_compare.py    ← side-by-side comparison
    └── settings.py

Supported Formats

Format Extension Notes
MT5 Account History .htm / .html Export from MT5 → Account History → Save as Report
MT5 Backtest Report .htm / .html Generated by batch backtest runner or manual tester
Quant Analyzer CSV .csv Export listOfTrades from Quant Analyzer

.gitignore

Add the following to .gitignore:

mt5_batch_config.json
S
Description
Metatrader 5 trade and EA tools
Readme 454 KiB
Languages
Python 100%