Multiple EAs on one account

 

Hello, I am not sure if this process has been explained elsewhere.. but I will proceed to ask the question here.

I want to run two Expert Advisors on the same account. One would be executing trades and the other would be monitoring the daily drawdown then send an alert if it comes close to a limit set.

Is it possible to do this? And is it possible to prevent trades from being taken from the first expert advisor if the other one detects the drawdown limit has been reached?

Thank you so much!

 
Marcel Mase: I am not sure if this process has been explained elsewhere.. but I will proceed to ask the question here.

Yes, it has been asked many times before, so please in the future, please search before you post.

Marcel Mase: I want to run two Expert Advisors on the same account. One would be executing trades and the other would be monitoring the daily drawdown then send an alert if it comes close to a limit set. Is it possible to do this?

Yes! You can run one EA per chart, and you can run up to 100 charts per MetaTrader terminal, which means you can run up to 100 EAs.

However, on MetaQuotes VPS, you are limited to 32 charts, and therefore 32 EAs.

Marcel Mase: And is it possible to prevent trades from being taken from the first expert advisor if the other one detects the drawdown limit has been reached?

No, not really with normal pure MQL (with a possible exception, see next sentence). Maybe, with round-about hacks, but not very easily.

One way I have seen reported in the forum (but I have never tested it), was to apply a clean template to a chart with a running EA, so as to force the EA to terminate.