Build a Set and Forget Breakout Bot part 7

Wrapping up the series with code for the optional move to break even on first close. Going back to basics for a beginners coding guide, I’m writing a complete breakout expert based on a published strategy including tips and optimisation.

EA for Beginners, set and forget breakout, code, optimisation, testing part 7

As I was uploading the video I realised that I have made the detection of the closed trade too complex. I got caught up in the details of the problem without seeing the big picture. I will release a part 8 with a different method of moving to break even, and it will be shorter.

I also noticed that for the MQL4 compatibility I missed creating the function long PositionMagic() { return OrderMagicNumber(); }

The strategy was published by TradePro and is a time range based breakout trading USDJPY with 3 stage take profit.

As a beginners guide I’m taking things slowly so I have to break the tutorial down to multiple videos. This is the first part and there is a link to the playlist below. I will add further parts to the playlist in the coming days.

The code is for Metatrader 5 but is almost the same for Metatrader 4 and I’ll try to point out the differences as I go in the videos

Looking for a broker? Support the channel by using one of these links. We receive a commission on your trades from the broker at no cost to you:
Good product range – IC Markets
High leverage for Australian customers – BlackBull Markets
Discount on commission – OX Securities

Download the code:

Scroll to Top