Help needed with MT5 terminal64.exe stop running in background processes, after closing it

 

Hi,

I tried to search this forum for a solution for my problem, but I can't find any related stuff on this subject.

Does anyone know how to prevent the MT5 terminal64.exe from running in the background processes? If I close the terminal, some terminals will keep running in the background:

Windows task manager background processes

I use a PowerShell script to automate all the terminal64.exe instances to start, but the script will only start the terminals which aren't running. In the above example, the terminal is closed and keeps running in the background processes. This will cause my PowerShell script to skip this terminal, because it thinks it's running normal.

I can use another PowerShell script to force the terminals to start, even when they are running already. But this is very annoying, because as far as I know it can't be done "in the background / stealth". So when the terminals are forced opened in this way, it will take / flip you to the terminals, every XX minutes the script run.

I always use the latest updates.


Thanks

 
r-v:

Hi,

I tried to search this forum for a solution for my problem, but I can't find any related stuff on this subject.

Does anyone know how to prevent the MT5 terminal64.exe from running in the background processes? If I close the terminal, some terminals will keep running in the background:


This is not normal and you should find the cause. Usually it's an internal MT5 process which is running an infinite loop or something similar.

 

Thanks for your reply Alain.

Do you have any suggestions how I can find the cause, or how to check which internal MT5 processes are running which may cause this problem?

 
r-v #: Do you have any suggestions how I can find the cause, or how to check which internal MT5 processes are running which may cause this problem?
By checking the functionality and source code of the MQL5 programs you are running (Indicators, EAs, Scripts, etc.).
 
I'm experiencing this with multiple terminals and I also tested new terminals without anything running, in my case it's not caused by MQL5 programs
 
So powershell is a program you can use to automatically start up mt5?

If you run mt5 normally by clicking the desktop shortcut, do you still have the same problem? 

I'm guessing you've tried waiting say at least 10 minutes and the process is still there?

Do you have an EAs running? Does the problem persist when they're not running?
 
J Sky #:
So powershell is a program you can use to automatically start up mt5?

If you run mt5 normally by clicking the desktop shortcut, do you still have the same problem? 

I'm guessing you've tried waiting say at least 10 minutes and the process is still there?

Do you have an EAs running? Does the problem persist when they're not running?
- Yes, I'm using a PowerShell script to check which terminals are running and let it start the terminals which aren't running.

- I don't have any issues when I start the MT5 terminal by using a shortcut. When I use the shortcuts to the terminals in the PowerShell script, everything starts. But not in the background, even when the terminals are already running

- Yes, the process is still there after waiting a few hours / a day

- No EA's are running is this terminal.

Even when I delete the complete folder and let Metatrader create a new folder, close the background process manually and start / close this new terminal, the terminal64.exe keeps running in the background process.

I deleted the the folder from where this terminal was running

When I manually close the background process, the terminal64.exe will start after a few minutes, even when I didn't start the specific terminal64.exe.

I'm pretty sure this problem is somehow related to the MetaEditor, because the MetaEditor I was using on this server came from this terminal..

I also made sure no MetaEditor was running.