← All articles
Automation

Running Multiple Strategies on One MT5 Account

Two strategies on one account will sabotage each other unless you isolate them. Magic numbers and strategy tags: how professionals run a portfolio of systems on a single terminal.

July 15, 2026 · 6 min read · TradeHookX Team

The collision problem

Run a scalper and a swing system on the same account naively and disaster is mechanical: the swing system sends a close-all-longs signal and flattens the scalper positions too; the scalper flips direction and nets out the swing entry. Each strategy is correct in isolation and destructive in company - because the account cannot tell whose trades are whose.

The fix is identity. Every trade gets tagged with which strategy opened it, and every management signal only touches trades wearing its own tag.

Magic numbers: identity at the order level

MetaTrader has carried this concept for decades: the magic number, an integer stamped on each order. Give strategy A magic 100001 and strategy B magic 100002, and a close signal carrying magic 100001 closes only A trades - B positions are untouched. Keep the numbering boring and systematic (100001, 100002, 100003) and the account history stays readable forever.

Left empty, trades take a default magic shared across everything on that terminal - fine for one strategy, the collision problem incarnate for several.

Strategy tags: identity at the routing level

Tags solve a different half of the problem: which terminal should even execute a signal. Configure a terminal with a strategy tag and it only executes signals carrying that tag - other signals are skipped and logged. This lets one license and one webhook serve a portfolio: the gold scalper tag routes to the aggressive account, the index swing tag to the conservative one, without separate infrastructure per system.

{ "licenseKey": "TB-XXXX", "action": "buy", "symbol": "XAUUSD", "size": 0.05, "strategy": "GLD", "magic": 100001 }

Portfolio hygiene

  • One comment per strategy too - order comments make MetaTrader history reviews instant
  • Separate copy groups per strategy if you lead - followers choose a system, not a blend
  • Risk guards are terminal-level: the daily loss limit protects the whole account across every strategy on it
  • Review per-magic performance monthly - a portfolio only helps if you cut the members that stop earning their place

Ready to automate your strategy?

7-day free trial on every plan. No credit card required.

Start free trial