Code to close all trades after set profit is reached

 

Hi all,

I'm   running an EA   on 3  different charts and i'm wondering if someone knows an mql4 code that automatically closes  all trades when a set total  profit ( pnl) is reached.

Is it possible?  Please help.


Thanks.

 
creating EA that closes all market orders and pending orders at once when pre-defined profit is reached
creating EA that closes all market orders and pending orders at once when pre-defined profit is reached
  • 2017.05.09
  • www.mql5.com
hello together. please need help to program an EA for closing open orders. important is that the function of pre-defined profit is possible...