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:
35
UTILS.md
35
UTILS.md
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user