You want to use PC2 (Windows 10) to help speed up or contribute to the strategy optimization running on PC1 (Windows 11) in MetaTrader 5. Essentially, you're looking to distribute the optimization workload across your two PCs on the same network.
Here's what you can do:
1. Use MetaTrader 5 Network Distributed Optimization
MetaTrader 5 supports Distributed Optimization over LAN or internet via its built-in network optimization feature. This allows you to use multiple machines to run parts of the optimization simultaneously.
Step-by-Step Guide for Distributed Optimization in MetaTrader 5:
Prerequisites:
- Both PCs must have the same version of MetaTrader 5 installed (you do).
- Both PCs must be on the same LAN and be able to communicate via local IP addresses.
- MetaTrader 5 should be allowed in Windows Firewall on both machines, or exceptions created for the MT5 executables.
- Make sure both machines have the strategy / expert advisor and necessary files.
Configuring the Server (Master PC):
-
Open MT5 on PC1 (Master)
-
Go to Tools → Options → Community tab
- Log in with your MQL5 account details if you have an account (optional but recommended).
-
Then go to Tools → Options → Experts tab
- Enable Allow automated trading.
- Enable Allow DLL imports if your Expert Advisor uses DLLs.
-
Go to Tools → Options → Signals tab
- Make sure Allow WebRequest for listed URL contains
https://www.mql5.com (optional).
-
Go to Navigator panel → Strategy Tester and open it.
-
In the Strategy Tester window:
- Select your Expert Advisor.
- Choose the symbol, timeframe, model, etc.
- Enable External Optimization.
- At the bottom, check Use Network Distributed Optimization.
-
Click on Settings → Distributed Optimization tab.
-
Here, you can start the optimization and MetaTrader will prepare a distributed task server on PC1.
Configuring the Worker (PC2):
-
On PC2, open MetaTrader 5.
-
Go to Tools → Options → Community tab and log in to the same MQL5 account (recommended).
-
Then, go to Tools → Options → Tester tab.
-
Find and check Run remote agents.
-
In the Remote Agents settings, add the LAN IP address of PC1 (the Master computer).
-
Also, make sure MetaTrader 5 is allowed in Windows Firewall on PC2 for both public and private networks.
-
Start the Strategy Tester on PC2 but don't start your own test — just make sure the remote agent is enabled.
How it works:
- When you start the optimization on PC1, it will split the task into multiple jobs and dispatch them to PC2 (and any other configured PCs).
- PC2 acts as a Remote Agent and calculates parts of the task, returning the results to PC1.
- This significantly speeds up the optimization process.
Notes:
- You will need fast network LAN/Wi-Fi setup for best results.
- Make sure both PCs keep MT5 running, and Remote Agent checking enabled.
- The MQL5 community account login helps coordinate tasks but is not mandatory if both machines are on the same LAN.
- MT5 must be running and connected to the same broker server on both PCs.
- Both PCs should have the same Expert Advisor files in
MQL5/Experts directory.
Alternative (Manual/Partial Distribution)
If for some reason you cannot get distributed optimization working smoothly, you can also:
- Divide the optimization manually by restricting optimization parameters (e.g. certain ranges) on each PC and running partial optimizations separately.
- Then aggregate results manually.
However, this is less efficient than the built-in distributed optimization.
If you want, I can help you with exact screenshots or commands for any step. Would you like to proceed with the distributed optimization setup?