how to keep previous orders opened after open new ones ?

 

I want to modify this EA to keep the previous orders opened and open new ones, I tried to modify but only opens one order of buy and the nothing else.

in what part of  the code I must modify ? can someone help me ?

 
  1. The EA only closes orders when the indicator indicates a change of trend. Comment out the OrderClose and return, so it doesn't try to open an opposite order.

  2. Comment out the test for no orders (openedBuys==0) if you want it to open an order each new bar.

  3. 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)