#!/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"