Help; Closing all open orders when % Account equity > Account Balance

 

Hello could anyone help me with a script regarding taking profit.


I am looking to take profit on a % of the account balance.


for example if profit reaches 0.25% of the total account balance, close all open position, or if account equity > account balance by 0.25% close all open positions.


Kind regards,

 
scatters: could anyone help me with a script regarding taking profit.
  1. Scripts are for one time operation. If you are always going to want this, make an EA.

  2. Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your difficulty.
              No free help (2017)

    Or pay someone. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum (2018)

    We're not going to code it for you (although it could happen if you are lucky or the problem is interesting).
              No free help (2017)

Reason: