Forum on trading, automated trading systems and testing trading strategies
Bug report: Error when running multiple MT5 terminals
Sergey Golubev, 2022.08.19 12:38
I had this situation many years ago with MT4 (I had 20 instances of MT4 but if I add 21th Metatrader so everything stops working; I had dedicated server in that time).And I understood in that time that there are limitation also about how many copies of Metatrader you can have in your computer opened.
I tried to discover about where this limitation is coming from and I came to something related to intenet connection or frequencies in BIOS (and it does not depend on how good is your computer with memory etc for example).
It was many years ago, but I am not installing many Metatrader instances on the computer anymore (because I have no idea about how good motherboard of my computer concerning interrupt frequency for example).
The developers are silent, so we can only guess
They explained.
Windows has a monstrous, almost unfixable bug with graphical handles in the current session. There are very few of them and this has been dragging on since Windows 3.1.
To increase the number of available handles, you need to increase the size of the hip in the registry [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\SubSystems\Windows]:
%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,20480,768 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16
на
%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,65536,65536 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16 Note that you can't do this on 32 bits and on small physical memory sizes (don't even try to do it on < 16 Gb of memory). We put this on >64 Gb RAM.
If you make these changes on low-end computers, you may end up with an unbootable operating system.
SYSTEM Configuration : Intel Core Ultra 285k /RAM: 48 GB (8400 Mhz RAM)/SSD : SAMSUNG 9100 PRO/ No dedicated GPU.
I m using Powerful CPU/Ram & trying to run say 10 MT5 Platform with each having Standard 28 forex Symbols Charts with EA attached on each of it. CPU & Ram run as 65% / 48% capacity (Task Manager Windows show that NPU/GPU are also have unsued capacity) but still i m unable to run more than 4 platform as mention with each platform having say 30 EA appx.
When I searched it on Chapt GPT it said even u have unsued cpu/ram capacity still MT5 Platform is structured in such way that it cant run multiple system with multiple EA till our CPU/Ram Capacity.
I m also willing to exapand my setup upto say 10 CPU with around 1000 EA running on it in total for forward testing of trading Strategies on Real Cent Ac. I m using Vantage Markets MT5.
If I instal Intel Xeon/ AMD ThreadRipper Latest powerfull Processor in single Motherboard will I m able to scale multiple MT 5 Platform say upto 100 ? Or I need to build 20-30 similar Configuration system like as which I m using currently.
(VPS is too much costly to scale my operation hence i need to use my Hom Built VPS).
Can any expert guide me how to solve this scalling issue.Dipak Gulhane (<tel number was deleted by moderator>)
The theoretical maximum number of charts by MT5 instance is 100.
The theoretical maximum number of MT5 instances is 32.
Beside that you will be limited by the computer and Windows available resources.
If your EA running on 4 MT5 with 30 charts each (120 in total) is using already 65% of the CPU and 48% of your 48GB RAM, then your main problem is not the number of MT5 instances.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
SYSTEM Configuration : Intel Core Ultra 285k /RAM: 48 GB (8400 Mhz RAM)/SSD : SAMSUNG 9100 PRO/ No dedicated GPU.
I m using Powerful CPU/Ram & trying to run say 10 MT5 Platform with each having Standard 28 forex Symbols Charts with EA attached on each of it. CPU & Ram run as 65% / 48% capacity (Task Manager Windows show that NPU/GPU are also have unsued capacity) but still i m unable to run more than 4 platform as mention with each platform having say 30 EA appx.
When I searched it on Chapt GPT it said even u have unsued cpu/ram capacity still MT5 Platform is structured in such way that it cant run multiple system with multiple EA till our CPU/Ram Capacity.
I m also willing to exapand my setup upto say 10 CPU with around 1000 EA running on it in total for forward testing of trading Strategies on Real Cent Ac. I m using Vantage Markets MT5.
If I instal Intel Xeon/ AMD ThreadRipper Latest powerfull Processor in single Motherboard will I m able to scale multiple MT 5 Platform say upto 100 ? Or I need to build 20-30 similar Configuration system like as which I m using currently.
(VPS is too much costly to scale my operation hence i need to use my Hom Built VPS).
Can any expert guide me how to solve this scalling issue.Dipak Gulhane (<tel number was deleted by moderator>)