Close the trade after X candlesticks...

 

Good day...

Can someone share with me a code of an MT4 where I can programm the closing of a trade ,  after X candles after the trade is opened.

Or.. where can I find this guide.

Thank you very much...

 

What's the problem?

  1. Select the order
  2. get the order open time
  3. get the shift of that bar
  4. compare to X and close the trade.
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)