Mercados ao vivo
    Todos os posts MT5

    How to Run Multiple Expert Advisors on One MT5 Account Safely (Magic Numbers Explained)

    KastleChart Team · 30 nov 2026 · 1 min de leitura
    How to Run Multiple Expert Advisors on One MT5 Account Safely (Magic Numbers Explained)

    Running a portfolio of uncorrelated Expert Advisors—for example, a Gold breakout bot alongside a EURUSD mean-reversion bot—is one of the best ways to smooth out your equity curve. You don’t need a separate trading account for each bot, either. MetaTrader 5 lets you run dozens of EAs on a single account, as long as you keep them from stepping on each other’s toes.

    Why Magic Numbers Are Non-Negotiable

    Every order placed by an EA carries an invisible ID tag called a Magic Number (for example, 1001 or 202601). When an EA checks whether it has an open trade to trail or close, it filters positions by its own Magic Number.

    If you attach two EAs to the same account and both use the default Magic Number 12345, Bot A may accidentally modify or close Bot B’s trades—turning two solid strategies into chaos. Always assign a unique Magic Number to every single chart where an EA is attached.

    Check Hedging vs. Netting Account Mode

    Before combining bots on the same symbol (like two different Gold EAs), check whether your MT5 account is Hedging or Netting (shown in the top title bar of MT5):

    • Hedging Account: Each EA can hold its own independent buy or sell positions on the same symbol simultaneously. This is what you want for multi-EA portfolios.
    • Netting Account: All trades on the same symbol merge into one combined position, which breaks most multi-EA setups.

    Watch Combined Risk and CPU Load

    Divide your normal risk per trade across the portfolio—if you usually risk 1% with one bot, drop it to 0.3%–0.5% when running three bots together so a simultaneous losing streak stays manageable. Finally, keep an eye on your VPS RAM and CPU usage; clean, well-coded EAs barely use any resources, but heavy indicator-based bots can slow down execution if you overload a small VPS.