Python workspace for MQL5 integration. TRIGGERS - MetaTrader 5 Python, mt5 package, MQL5-Python setup.
Seamless MQL5 indicator translation to Python with autonomous validation and self-correction.
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
Use this skill when the user wants to:
Activation Phrases: "MQL5", "MetaTrader", "indicator translation", "Python validation", "export data", "mql5-crossover workspace"
Main Theme: Make MQL5-Python translation as seamless as possible through:
Project Root: ~/Library/Application Support/CrossOver/Bottles/MetaTrader 5/drive_c
Status: PRODUCTION (0.999920 correlation validated)
What It Does:
Command Example:
CX_BOTTLE="MetaTrader 5" \
WINEPREFIX="$HOME/Library/Application Support/CrossOver/Bottles/MetaTrader 5" \
wine "C:\\Program Files\\Python312\\python.exe" \
"C:\\users\\crossover\\export_aligned.py" \
--symbol EURUSD --period M1 --bars 5000
Use When: User needs automated market data exports without GUI interaction
Limitations: Cannot access custom indicator buffers (API restriction)
Reference: /docs/guides/WINE_PYTHON_EXECUTION.md
For detailed information, see:
| Issue | Cause | Solution |
|---|---|---|
| Wine Python not found | CrossOver/Wine not installed | Install CrossOver, verify bottle path |
| MT5 API connection failed | MetaTrader not running | Launch MetaTrader 5 before running export |
| Correlation below 0.999 | Indicator mismatch | Verify warmup periods, check calculation alignment |
| Custom indicator not working | API restriction | Use CSV export from MT5, not Python API |
| UnicodeDecodeError | Windows path encoding | Use raw strings for Windows paths in Wine |
| Symbol not found | Wrong symbol format | Use exact MT5 symbol name (e.g., EURUSD not EUR/USD) |
| Timeout on export | Too many bars requested | Reduce bar count, default 5000 is safe |
| Permission denied | Wine prefix incorrect | Set WINEPREFIX to correct CrossOver bottle path |
After this skill completes, check before closing:
Only update if the issue is real and reproducible — not speculative.
