Automatically closing all orders when there is a certain loss

 

I was wondering if there is any EA that will automatically close all my positions on an MT4 when a specific amount of loss is reached for all. 

Or maybe any other way I can be doing so? 

Thanks

 
Stefanos Ioannou: I was wondering if there is any EA that will automatically close all my positions on an MT4 when a specific amount of loss is reached for all. Or maybe any other way I can be doing so?
Search the CodeBase or Market! If not found, then hire someone to code it for you!
 
Fernando Carreiro:
Search the CodeBase or Market! If not found, then hire someone to code it for you!

Do I need an expert advisor so it runs all the time and do that? 

Or do scripts do the same if they are applied on a chart?

 
Stefanos Ioannou: Do I need an expert advisor so it runs all the time and do that? Or do scripts do the same if they are applied on a chart?

It depends on your specific requirements! A Script only runs once then stops. An EA can continually monitor and react when necessary.

 

Replying here as I found what I was after so others can be helped in future.


https://www.mql5.com/en/code/10597?utm_campaign=codebase.list&utm_medium=special&utm_source=mt4terminal

Close at Profit
Close at Profit
  • www.mql5.com
Close all trades after reaching defined profit or loss