Object Oriented Robot Available on MetaTrader 5
Having ported our example moving average crossover MT4 robot to MetaTrader 5 following the recent launch of the MT5 strategy tester we've now taken the next step. We've rewritten the expert advisor using the object oriented framework supplied by MetaQuotes as part of MetaTrader 5. You can take a look at our source code and see if this new way of producing robots appeals to you or not.
As you would expect the backtest results are exactly the same as for the robot written using the "old fashioned" procedural style, so we thought we'd see if we could show you some results that are rather more impressive than ones that show your account emptying in less than 3 months! We didn't use the input settings recommended by Boston Technologies. Instead we plugged in the same numbers that worked well for the same robot in 2008. That was four hour bars with a fast period of 10 bars and a slow period of 100. Here's what the MetaTrader 5 strategy tester showed us:
270% profit in 3 months looks pretty good, wouldn't you agree? Certainly a lot better than a 100% loss!
Tags: Forex Course, Forex Trading Systems, MetaTrader 5, OOP, Robots
Filed under Trading Systems by Jim
Comments on Object Oriented Robot Available on MetaTrader 5
ken kissaki @ 2:16 am
Hi, can you explain more about how this EA will work ?
Jim @ 9:01 am
Hi Ken,
First of all you can download the source code to discover exactly how it works!
This expert advisor is one of a sequence of educational EAs, designed to illustrate one way of going about translating a procedural style MetaTrader 4 expert advisor that utilises indicators to an object-oriented MetaTrader 5 EA. If you compare the test results with previous EAs in the series, it also demonstrates that the MT5 strategy tester provides you with more information than the MT4 strategy tester.
If you have any further questions please would you ask them over on our Community forum, where there's now a multi-currency version also.
Thanks,
Jim