What is User Broadcast?
User Broadcast is a remote-control layer over your Commando EA. From any browser (or the installed PWA on your phone) you can compose a setup, run a Calculate preview, Launch it for real, and manage every live setup with the same buttons you see on the in-MT5 panel.
It's designed for the case where you're away from your PC but your EA is running on it (or a VPS). The flagship use case: a GM leader on the move who wants to publish a setup to their group without touching the desktop.
Two channels, one EA
- Command channel (new) — the website queues commands; the EA polls every 5 seconds for new ones over an authenticated HTTPS connection. The EA executes the command on receipt and POSTs the result back to the website.
- State channel (existing) — Comms_CL keeps streaming live session state to the website every 5 s. The Live Setups section of the broadcast page reads from that feed for floating P/L and TP-hit updates.
Both channels use the same license key your Commando already validates with — there is no extra key to manage. The EA must be enabled for User Broadcast in its input panel (UserBroadcast_Enabled = true, default).
Enabling User Broadcast
- Go to Dashboard → EA Management.
- Find your Commando MS license card. Click Enable User Broadcast.
- Read the waiver disclosure. Real money is on the line — misuse, fat-finger errors, or a compromised account can cost real capital.
- Tick the "I have read and accept" checkbox and type AGREE in the confirmation field.
- Choose a 6-digit PIN and enter it twice. The PIN gates every destructive action and cannot be recovered — only reset, which requires re-accepting the waiver.
- The button on the LicenseCard flips to Open User Broadcast →.
The broadcast page
Header
Shows your EA type, license key (masked), bound account, and a live EA online / EA offline chip. The chip turns green within 5 seconds of your EA's next poll. If it stays amber, double-check the EA is running on a chart, UserBroadcast_Enabled = true, and the URL https://clogicfactory.space is allowed in Tools → Options → Expert Advisors → Allow WebRequest.
Compose Setup
Mirrors the in-MT5 Panel 1: BUY / SELL, Progressive / Fixed, the Re-Entry / SL Forward / Trailing TP toggles, TP-group count (1/2/3), and the Entry / Stop / Risk ($) / TP price fields. Type your symbol (e.g. BTCUSD) — must be a symbol that has an open chart on your EA's terminal — then:
- Calculate — sends a CALCULATE command. The EA fills the form (you'll see the on-PC panel flash), runs its internal Calculator, and returns the grid preview + stats. No orders are placed.
- Clear — local form reset.
- 🚀 Launch — PIN prompt → enter your 6-digit PIN → the EA fills the form, validates, and places the pending orders. On success you see the new session ID (magic number).
Live Setups
One card per active session, grouped by symbol. Each card shows the direction, session id, EA source, and (if Comms_CL is loaded) floating P/L. The control buttons map 1:1 to Panel 2:
- Destructive (PIN required) — Close All, Close Pending, Emergency SL, Move to BE.
- Non-destructive — Close TP1 / TP2 / TP3, Redistribute, SL Forward toggle, Re-Entry toggle, Trailing TP on/off, and the SL Manager (enter a new SL price, pick a target group, hit Adjust).
If Comms_CL isn't running on the same terminal, the page synthesises a control card from your most recent successful LAUNCH so you can still close or manage it. Floating P/L appears once Comms is connected.
Recent attempts (Retry tray)
Lists the last 10 commands sent from this license. Each row shows status (queued / delivered / executed / failed / expired / cancelled), age, and any error detail. Failed or expired non-Launch commands have a Retry button. Queued commands have Cancel.
The PIN
- 6 digits, stored as a strong scrypt hash. Never sent in plaintext beyond the initial verification.
- When a destructive action is needed, you'll see a PIN modal once per session. The verification mints a 5-minute token that authorises subsequent destructive commands in the same browsing session — so you don't re-type the PIN every click.
- Lockout: 5 wrong PINs in a row → 15-minute lockout. The page surfaces the remaining attempt count.
- Forgot PIN? Go back to EA Management and disable / re-enable User Broadcast to set a new one. You'll re-accept the waiver.
Limits
- 3 setups per (account, symbol) — matches the in-MT5 cap. A 4th LAUNCH on the same symbol is rejected with
slot_full. - 20 commands/hour and 100 commands/day, per user. Hitting either returns a 429 with a Retry-After header. Contact support if you need an override.
- 30-second pickup window — if no EA polls within 30s of submission, the command is marked
expired. You can retry from the tray; the payload is preserved.
What gets pushed to your phone
If you've enabled push notifications (Dashboard → Settings → Notifications), the following events fire a push:
- Setup executed — "Session #50012345 opened."
- Setup / action failed — with the EA-reported reason (e.g.
insufficient_margin). - Command expired — "EA did not pick up the command within 30s. Tap to retry."
Scope (current release)
Commando MS only. GM and AT-in-MS-mode support is the next increment — when ready, the same broadcast page picks up the extra GM-only options (Post to Group, Show on Demo, Advanced Updates) automatically.
Troubleshooting
- EA offline chip stays amber: confirm the EA is on a chart with
UserBroadcast_Enabled = true, and that https://clogicfactory.space is in MetaTrader's allowed URLs. - "EA has not connected yet" on Calculate / Launch: the server hasn't seen a heartbeat. Open the symbol chart, wait 5 seconds, try again.
- Slot full: you already have 3 active LAUNCHes on that symbol on this account. Close one in the Live Setups section first.
- Wrong PIN: the response shows remaining attempts. After 5 wrong → 15-minute lockout.