Help for Coding an EA-Trade all 5mins candles

 
Hello MQL5 community.

Please I'm very new to MQL5 programming
I want to create an EA that opens a buy and sell pending order on each 5min candle that has closed. 
The EA starts at the first 5 mins candle of the day that has closed , pend a buy at 1 pip above the high of this first candle that has just closed and a sell 1 pip below the low of same candle, then move to the second candle of the day that has closed and do same then to the third candle till the last.
once a 5min candle has closed, ea should instantly place a pending buy or sell order. The tp is 10 pips and the stop loss is the other end of the 5min candle. 

Thanks in anticipation for a favorable response
 

Your topic has been moved to the section: Expert Advisors and Automated Trading — In the future, please consider which section is most appropriate for your query.

  • Usually people who cannot code do not receive free help on this forum.
  • If you show your attempts and describe your problem clearly, you will most probably receive an answer from the community. Use the CODE button (Alt-S) when inserting code.
  • If you do not want to learn to code, that is not a problem. You can either look at the Codebase if something free already exists, or in the Market for paid products (also sometimes free).
  • Finally, you also have the option to hire a programmer in the Freelance section.
Reason: