You could look in Codebase for a similar EA and adapt it to your needs while you are learning.
All EAs do basically the same things.
Check for conditions to place a buy or a sell trade.
There are plenty of EAs in the Codebase that do this.
You say that you have experience with C++, so you should realise that your request is just too vague to expect a comprehensive answer.