Add MT5 helper utilities

- view-report.sh: Read HTML reports without browser
- parse-deals.py: Extract data from binary deal files
- export-history.sh: Safe export guide
- UTILS.md: Documentation for tools

Prevents VM crashes when accessing trading data.
This commit is contained in:
2026-03-21 19:09:24 -04:00
parent 32e5c6a2dd
commit 9575c5ed76
4 changed files with 193 additions and 0 deletions

22
export-history.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
# Export trading history without opening browser
# This prevents VM crash from missing browser
echo "=== MT5 Trading History Export ==="
echo ""
echo "To export your trading history safely:"
echo ""
echo "1. In MT5, go to: History tab (bottom)"
echo "2. Right-click in the History panel"
echo "3. Select: 'Save as Report'"
echo "4. IMPORTANT: Choose location INSIDE mounted folder:"
echo " C:\\\\users\\\\abc\\\\AppData\\\\Roaming\\\\MetaQuotes\\\\Terminal\\\\"
echo " OR any folder under C:\\\\ that maps to host"
echo ""
echo "5. Save as: DetailedStatement.htm"
echo ""
echo "The file will be saved here on host:"
echo " ~/mt5-docker/config/.wine/drive_c/users/abc/AppData/Roaming/MetaQuotes/Terminal/"
echo ""
echo "Then you can view it with:"
echo " cat ~/mt5-docker/config/.wine/drive_c/users/abc/AppData/Roaming/MetaQuotes/Terminal/DetailedStatement.htm"