# MT5 Current State Before Grid
Audit timestamp: `2026-03-25T04:45Z` to `2026-03-25T05:05Z`
## Install and Data Paths
- MT5 install directory: `/trading/forex-mt5/wineprefix/drive_c/Program Files/MetaTrader 5`
- Wine prefix: `/trading/forex-mt5/wineprefix`
- Runtime HOME for `tradingfx`: `/trading/forex-mt5/runtime/home`
- MT5 data mode: portable launch via `/portable`, so config/data are stored under the install tree above
- MQL5 Experts directory: `/trading/forex-mt5/wineprefix/drive_c/Program Files/MetaTrader 5/MQL5/Experts`
- Config directory: `/trading/forex-mt5/wineprefix/drive_c/Program Files/MetaTrader 5/Config`
- Terminal log directory: `/trading/forex-mt5/wineprefix/drive_c/Program Files/MetaTrader 5/logs`
## Binaries and Wrapper
- Terminal binary present: `/trading/forex-mt5/wineprefix/drive_c/Program Files/MetaTrader 5/terminal64.exe`
- MetaEditor binary present: `/trading/forex-mt5/wineprefix/drive_c/Program Files/MetaTrader 5/MetaEditor64.exe`
- Start wrapper: `/trading/forex-mt5/scripts/start-mt5.sh`
- Stop wrapper: `/trading/forex-mt5/scripts/stop-mt5.sh`
- Status wrapper: `/trading/forex-mt5/scripts/status-mt5.sh`
## Account State
- No saved broker/demo credentials were found in the inspected config files.
- No active account login could be proven from the latest terminal journal.
- Current demo account readiness: `not confirmed`
- Current account margin mode: `unknown until a broker account is connected`
- Current hedging/netting status: `unknown until a broker account is connected`
## Latest Observed Logs
- Latest terminal journal available during this audit window: `/trading/forex-mt5/wineprefix/drive_c/Program Files/MetaTrader 5/logs/20260325.log`
- Latest MetaEditor journal available: `/trading/forex-mt5/wineprefix/drive_c/Program Files/MetaTrader 5/logs/metaeditor.log`
- The latest journal contains repeated Wine warnings about unsupported Wine `8.0`.
- No journal evidence was found for `authorized`, `login`, `demo`, `hedging`, or `netting`.
## Wrapper Health
- `status-mt5.sh` confirms MT5 is currently stopped and no MT5-related listener is exposed.
- A fresh headless smoke start on `2026-03-25` launched successfully for the first few seconds, then the wrapper process exited before the next status snapshot.
- Existing soak logs from `2026-03-22` prove short headless runs of `1s` to `20s` were previously successful.
- Current headless health should be treated as `short-run verified, sustained-run not yet trusted`.
- X11 mode is implemented and documented, but it was not runtime-tested in this audit because no forwarded `DISPLAY` from an operator workstation was present.
## Compile State Before Grid
- Historical MetaEditor log shows `DemoFastPathSkeleton.mq5` was reported as compiled on `2026-03-22`.
- A current non-interactive MetaEditor CLI invocation under Wine/Xvfb exited cleanly but did not leave a fresh verifiable `.ex5` artifact.
- Practical interpretation: CLI compile path exists in principle, but this host still requires artifact verification after every compile attempt.
## Exposure Check
- No MT5, MetaEditor, X11, VNC, or RDP listener dedicated to this trading lab was found in the current socket snapshot.
- Backend exposure posture for MT5 remains local-only.
## Pre-Grid Conclusion
- The MT5 install is present and isolated.
- The demo account is not yet confirmed active.
- Hedging versus netting cannot yet be asserted.
- Headless wrapper remains usable for short bootstrap actions, but not yet trusted for long unattended operation on the current day.
- The safest next step is to add a bounded demo-only EA, verify compile artifact creation, and prepare an operator X11 login flow for demo account activation if needed.