# MT5 Demo Login Checklist
Use this only for a manual demo session.
## Before Login
1. Confirm GUI access will stay local-only by reading `/trading/forex-mt5/docs/GUI-ACCESS.md`.
2. Confirm there is no need to expose VNC, RDP, or any new port.
3. Confirm MT5 is stopped with `/trading/forex-mt5/scripts/status-mt5.sh`.
4. Keep the phase demo-only. Do not switch to a live server, do not enable live trading, and do not start crypto.
5. Start MT5 from a trusted SSH X11 session:
```bash
ssh -Y root@YOUR_VPS_IP
DISPLAY="$DISPLAY" /trading/forex-mt5/scripts/start-mt5.sh --x11
```
## Login Steps
1. In MT5, choose `File -> Login to Trade Account` or the broker's demo account flow.
2. Use demo credentials only.
3. Verify the server name is a demo server before clicking login.
4. Do not save credentials into ad hoc files under `/root` or any world-readable path.
5. Do not change GUI exposure posture to work around login issues.
## Verify The Terminal Is Healthy
1. Check the bottom-right connection indicator shows active traffic rather than waiting or disconnected.
2. Open `View -> Market Watch` and confirm symbols are visible.
3. Open one demo chart, preferably `EURUSD`, and confirm candles or quotes update.
4. Confirm the `Journal` and `Experts` tabs do not show repeated fatal errors.
5. If you plan to attach the skeleton EA next, keep the session to one chart only on the first pass.
## Quick Troubleshooting
### DISPLAY or X11 failed
- If `DISPLAY` is empty or the start wrapper refuses `--x11`, reconnect with `ssh -Y root@YOUR_VPS_IP`.
- Confirm the operator workstation X server works before retrying.
- Do not open VNC or RDP as a fallback.
### MT5 does not appear
- Run `/trading/forex-mt5/scripts/status-mt5.sh` to see whether the process is running.
- Review `/trading/forex-mt5/logs/mt5-run.log`.
- Stop MT5 with `/trading/forex-mt5/scripts/stop-mt5.sh` before retrying.
### Demo login failed
- Re-check login ID, password, and demo server name inside MT5.
- Confirm the selected server is demo-only.
- Review `/trading/forex-mt5/scripts/logs-mt5.sh 80` and the `Journal` tab for authentication or connectivity errors.
### Chart is empty
- Confirm `Market Watch` lists symbols. Use `Show All` if needed.
- Open a fresh `EURUSD` chart and wait for quotes.
- If the chart stays blank and `Journal` shows disconnect or no-price errors, stop and review logs.
### Journal shows errors
- Stop if errors repeat, the terminal becomes slow, or log spam accelerates.
- Review `/trading/forex-mt5/scripts/review-latest-logs.sh --lines 60`.
- Preserve the current logs before deeper changes.
## Safe Logout And Close
1. Close the MT5 terminal window normally if possible.
2. Run `/trading/forex-mt5/scripts/stop-mt5.sh`.
3. Run `/trading/forex-mt5/scripts/status-mt5.sh` and confirm `state=stopped`.
4. Keep the account demo-only for all future sessions in this phase.