Red "ACCOUNT MISMATCH" banner — what it means
From v4.2 onwards JTTS_EA detects whether the account logged in MT5 does NOT match the account it's reporting to. If it detects it, it fully pauses and paints a red banner on the chart. It's a protection, not a bug.
The essentials
- If you change account in MT5 (File → Login) with the EA loaded, data from the new account would be reported to the account_id of the old one — a dangerous mismatch.
- The server tells the EA which login it MUST see (the mt5_login you have set in /accounts).
- If it doesn't match: EA paused, red banner, no trade syncs, no risk enforcement fires.
- When you fix it (reload the EA on the right chart, or log back into the expected account), the EA resumes by itself in ≤5 s.
What to do when you see the banner
- Read the banner: it tells you which login it expected (#X) and which it sees now (#Y).
- Option A — fastest: in MT5, log back in with account #X (File → Login to Trade Account).
- Option B — if you wanted to be on #Y: close the EA on the current chart and load JTTS_EA on a chart of account #Y, setting InpAccountId to the correct journal account_id.
- Wait 5–10 s. The banner disappears and the EA resumes automatically.
What the mismatch pauses exactly
- Closed-trade sync to the journal — no contaminated history.
- Client-side risk enforcement — no closing positions of the wrong account using another's rules.
- Live snapshot (equity, floating P&L, lots, positions) — the dashboard doesn't show crossed data.
- Server command execution (close_all, close_position) — stays queued until match is restored.
How to avoid seeing it always
- Simple option
- Use separate MT5 instances — one per account. Each instance with its own terminal64.exe /portable and independent Data Folder. This is the professional standard.
- Light option
- A single MT5 terminal with several charts open — JTTS_EA loaded on EACH chart with its corresponding InpAccountId. The protection warns you if you operate on the wrong chart.
- Minimal option
- If you only trade one account at a time and switch login in the same terminal, remember to reload the EA after each switch. The protection is there for when you forget.
Tips
- The banner only clears when the next poll (≤5 s) confirms the login matches. No manual EA restart needed.
- The Alert() pop-up only fires the first time of the mismatch, to avoid spamming. If you switch to a wrong account again, the banner reappears but without pop-up.
Important
For the protection to work you need the mt5_login set in each PropFirmAccount (field "MT5 Login" in /accounts). If empty, the EA can't validate and allows everything — recommended to always set it.
Related
Download JTTS_EA and CopyTradingEA
In Connect → Downloads tab you have the EAs: .ex5 (MT5) or .ex4 (MT4) files you load in the platform and work in the background. We update them every few weeks; check the version periodically.
Connect MT5 with JTTS_EA
JTTS_EA is the MetaTrader 5 Expert Advisor that syncs your trades and applies Risk-config rules in real time.
Auto-close when you exceed your rules
If you configure Risk-config for an account, the journal watches every 60s. If you've exceeded any limit (daily drawdown, losing streak, etc.), it tries to close all open positions via the platform's connector.