Add show-latest-report utility

- show-latest-report.sh: Auto-finds and displays latest MT5 report
- parse-report.py: Python parser for HTML reports with full stats
- Updated UTILS.md with documentation
- No browser needed - prevents VM crashes
- Shows account info, P&L, trade stats, performance assessment
This commit is contained in:
2026-03-21 19:29:49 -04:00
parent 9575c5ed76
commit 14c4e7da2f
3 changed files with 266 additions and 0 deletions

View File

@@ -56,3 +56,38 @@ These scripts work around that limitation.
~/mt5-docker/config/.wine/drive_c/Program Files/MetaTrader 5/MQL5/Logs/YYYYMMDD.log
~/mt5-docker/config/.wine/drive_c/Program Files/MetaTrader 5/logs/YYYYMMDD.log
```
## show-latest-report.sh
Automatically finds and displays the latest MT5 trading report.
```bash
./show-latest-report.sh # Show latest report
./show-latest-report.sh --save # Save to text file
```
**Features:**
- Automatically finds the most recent `ReportHistory-*.html` file
- Displays formatted summary with colors
- Shows account info, P&L, trade stats, and performance assessment
- No browser needed (prevents VM crash)
## parse-report.py
Python parser for MT5 HTML reports (used by show-latest-report.sh).
```bash
python3 parse-report.py # Auto-find latest
python3 parse-report.py /path/to/file.html # Parse specific file
```
**Output includes:**
- Account name and company
- Net profit, gross profit/loss
- Profit factor
- Total trades, win/loss count
- Win rate percentage
- Largest win/loss
- Balance and return calculation
- Performance assessment