SetTradingOff

 
IT is possible tu turn off automated trading programatically?
 
Jose Luis Lominchar:
IT is possible tu turn off automated trading programatically?
if(IsTradeAllowed()) ExpertRemove();
 
Thank you.
And it is possible to ExpertRemove() other EAs instances attached in other graphs?
 
Jose Luis Lominchar:
IT is possible tu turn off automated trading programatically?

https://www.mql5.com/en/forum/151395#comment_3770399

 
Thank you! I finally achieve that with ExpertRemove() and Global Terminal Variables.
 
Jose Luis Lominchar:
And it is possible to ExpertRemove() other EAs instances attached in other graphs?

Forum on trading, automated trading systems and testing trading strategies

Libraries: Expert

Automated-Trading, 2017.11.03 12:29

Example

The library use examples/scenarios are attached to the description.

  • ExpertsRemove.mq5

    // Removes from all charts running Expert Advisors

Forum on trading, automated trading systems and testing trading strategies

Libraries: Expert

fxsaber, 2019.04.09 13:05

All library functionality now works on MT4.
The library has become cross-platform.
Rename ExpertsRemove.mq5 to ExpertsRemove.mq4.