Please join me on the journey to building an EA from an existing manual system.
The original manual system is Rob Booker's 5/13/62 which is a manual system based (in part on 3 EMA's, 5 (fast), 13 (medium) and 62 (slow). Here are the rules in brief:
- 5 crosses 13
- 13 crosses 62
- 13 at least 30-40 pips from 62
- wait for price to retrace back to 62
- open trade with 25 pips SL
- TP at previous support/resistance
- TS of 20
The complete rules (and comic relief) is
here.
When I started to plan building the EA, I realized that I don't know how to program a triple MA cross in MQL4 so I went hunting for examples. I came across the
Three Moving Averages EA at tradingsystemforex.com. This is a completely free EA (you have to register however). This EA is from 2008 and it is not aware of 5-decimal brokers (you have to multiply the SL, TP, TS by 10. It is also not ECN aware.
My plan is to implement the rules of Rob Booker's 5/13/62 one at a time and backtesting to make sure there are no bugs. I will use the triple MA cross from the Three Moving Averages EA.
I call this new EA RB51362 (creative eh?).
My first step is to clean up the original source code. It's a mess with no proper indentation and everything is jam-packed together and run some backtests just testing the straight 5/13/62 EMA cross with a 25 pip SL. I am running an optimization right now to determine the best TP.
More later,
Update 20110418 - Attached version .01-2011.04.18, License is GPL V2
Rick