BF BotFoundry
BotFoundry / 8 Bot Blueprints / mt5-forex-ea-vps
BOTFOUNDRY MQL5 RUNBOOK • PORTABLE HEAP & AUTOLOGON GUARD

BotFoundry MT4 / MT5 Forex EA Multi-Instance RAM & Watchdog Runbook

We model MetaTrader 4 and MetaTrader 5 servers on BotFoundry by summing the 2.80 GB Windows Server 2022 RDP desktop base, 0.42 GB per active terminal64.exe process, DLL indicator buffers, and a 22% volatility cushion so news-candle tick bursts never freeze unattended EAs.

Inspect UltaHost Specs for MQL5-EA via BotFoundry → Compare Vultr Tiers via BotFoundry → Load Preset in BotFoundry RAM Sizer →

BotFoundry Deterministic vCPU, RAM & Guard Matrix (BP-01 // MQL5-EA)

Public rates retrieved 2026-11-12 from official vendor pricing pages cited below; promotional & renewal prices may change — always verify exact specs, term length, and renewal rates on the vendor’s official checkout page.

Concurrency Scale vCPU DDR5 RAM OS / Runtime /dev/shm & Watchdog Guard Public Tier Match (2026-11-12)
1–3 Terminals 2 vCPU (3.5GHz+) 4 GB DDR5 Windows RDP / Ubuntu Wine64 AutoLogon + /portable NVMe UltaHost Win 4GB / Vultr HF 4GB
5–10 Terminals 4 vCPU Dedicated 8 GB DDR5 Windows Server 2022 RDP Task Scheduler 10s Poll UltaHost Win VPS 8GB ($26.50/mo)
15–30 Terminals 6–8 Dedicated VDS 16 GB DDR5 Windows Server 2022 RDP 0% Steal VDS + PowerPlan Min UltaHost VDS 16GB ($37.50/mo)
50+ Copy-Trade Desk 12+ Dedicated VDS 32–64 GB DDR5 Windows Server Datacenter Dedicated Threads + Pagefile Cap UltaHost VDS 64GB / InterServer Ryzen

BotFoundry Unattended Supervisor Snippet (BP-01 // MQL5-EA)

BotFoundry unattended Windows AutoLogon and 10-second Task Scheduler watchdog loop for MT5 terminal64.exe
BotFoundry unattended Windows AutoLogon and 10-second Task Scheduler watchdog loop for MT5 terminal64.exe
PowerShell — BotFoundry MT5 /portable Watchdog & High-Performance CPU Governor
# Lock High-Performance CPU governor (prevent C-state clock down-stepping)
powercfg /setactive SCHEME_MIN

# BotFoundry 10-second watchdog polling terminal64.exe in /portable mode
$mt5Exe = "C:\MT5_Instance_01\terminal64.exe"
while ($true) {
  $running = Get-Process -Name "terminal64" -ErrorAction SilentlyContinue
  if (-not $running) {
    Start-Process -FilePath $mt5Exe -ArgumentList "/portable"
  }
  Start-Sleep -Seconds 10
}
  1. 1. BotFoundry Region Rule: Match VPS Datacenter Zone to Your Broker Server Region

    A frequent error we see among algorithmic traders in Southeast Asia is provisioning a Singapore VPS for smooth Remote Desktop mouse cursor tracking while trading on an account hosted in New York/New Jersey or London. Always select the datacenter region that matches your broker’s trade server region; a 180 ms RDP visual screen delay to your laptop has 0% impact on automated MQL5 order placement.

  2. 2. Why BotFoundry Escalates 15+ MT5 Terminals from Shared VPS to Dedicated VDS Cores

    Oversold budget "Forex VPS" plans crowd dozens of Windows guests onto shared Xeon sockets. During synchronized macro releases (CPI, NFP, FOMC), every tenant’s Expert Advisor recalculates tick arrays on the exact same second, starving shared vCPUs. Our sizer switches multi-account pods at 15–30+ instances onto Dedicated VDS cores (UltaHost VDS) or Ryzen hardware so sibling tenants cannot steal execution cycles.

  3. 3. Trimming MT5 Max Bars & MarketWatch Symbols Cuts Per-Terminal RAM by 45% on BotFoundry

    Open Tools -> Options -> Charts inside each terminal and cap Max Bars in Chart at 5,000, right-click MarketWatch -> Hide All to unload unused FX/CFD feeds, disable audio alerts, and launch with /portable so MQL5 logs stay consolidated on NVMe.

BotFoundry Troubleshooting & Sizing FAQ (BP-01 // MQL5-EA)

When does BotFoundry recommend Windows Server 2022 RDP over Ubuntu Wine64 for MT5?

We recommend native Windows Server 2022 RDP (such as UltaHost Windows VPS/VDS) whenever your Expert Advisor loads Win32 .dll imports, MQL5 Market hardware activations, or trade-copier bridges. Reserve Ubuntu 24.04 + Wine64 headless strictly for self-compiled pure .ex5 bots where saving ~2.15 GB of OS RAM reduces monthly cost.

How many optimized MT4/MT5 terminals fit inside 8 GB DDR5 RAM under BotFoundry math?

Starting from a 2.80 GB Windows Server 2022 base plus 0.50 GB runtime overhead, our equation fits 8 optimized MT5 terminals (~0.42 GB each = 3.36 GB) with ~1.34 GB (20%+) volatility headroom inside an 8 GB DDR5 plan.

How does BotFoundry prevent Windows Update reboots from leaving MT5 EAs offline?

Configure Active Hours + Group Policy update deferral alongside Sysinternals Autologon and a 10-second PowerShell Task Scheduler loop so even an unexpected host reboot relaunches every terminal64.exe automatically.

Related BotFoundry Unattended Sizing Blueprints

UltaHost (BP-01 BotFoundry) From $16.50/mo
Inspect Specs on BotFoundry →