EA script Max Drawdown - Turn Off Automatic Trading - HELP

 
Hello, I have a EA script for max drawdown, it will automaticly close all positions after drawdown is reached. But I need to close all the positions and also turn off auto Trading. Is it possible? Can someone please modify my script to also turn the auto trading off? 

Thank all of you

File extension of attached file corrected by moderator

 
Your topic has been moved to the section: MQL4 and MetaTrader 4
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 
  • Usually people who can't code don't receive free help on this forum.
  • If you show your attempts and describe your problem clearly, you will most probably receive an answer from the community. Use the CODE button (Alt-S) when inserting code.
  • To learn MQL programming, you can research the many available Articles on the subject, or examples in the Codebase, as well as reference the online Documentation.
  • If you do not want to learn to code, that is not a problem. You can either look at the Codebase if something free already exists, or in the Market for paid products (also sometimes free). However, recommendations or suggestions for Market products are not allowed on the forum, so you will have to do your own research.
  • Finally, you also have the option to hire a programmer in the Freelance section.
Reason: