MQL4 Close all Open Orders when profit/loss of all open orders is XXXXX.XX

 
How can i Close all open orders when Profit/loss of all open orders reach the amount of i want, for example 500 profit and 300 loss. If any of this triggers, i want to close all open orders.
 

From CodeBase - 

----------------

----------------

How can I search for indicators and other elements in this forum?
How can I search for indicators and other elements in this forum?
  • 2017.05.29
  • www.mql5.com
How can I search for indicators in this forum? I need the Hodrick Prescott Filter for MT4. Please, if anyone can help me, I thank you in advance...
Reason: