Yesterday I tried new trading platform that is now in active testing mode. It was completely rewritten but at first sight looked the same. However, it is much more advanced now. I waited for its release because I had very good thoughts for multi-currency expert advisor. MetaTrader 4 do not provide strategy tester for that kind of experts which is essential for developers.
It took me 2 hours to rewrite that simple program, that I told about in my previous post "Your first EA" . The programming language MQL5 is completely different from MQL4. It's like to compare "C" and "C++" languages.
All the indicators and expert advisors have to be completely modified for MetaTrader 5. Moreover, its not like to change the names of the functions or the syntax of the language. MT5 do not support orders in the way almost all trading platforms does! Orders are replaced with positions and there can be only one position on each currency pair. This means all old expert advisors should change their logic and it'll take hours to modify its source code.
In MT4 to reverse your order you had to close Buy order and open Sell order. Now, you would have to open Sell order with doubled lot to do exactly the same thing.
Strategy tester in MT5 still needs some improvements. I haven't found a Results bookmark where I could see all done orders. But wait a minute, there are no orders in MT5. Actually, in the experts' output strategy tester shows some kind of orders, but it's done for testing purposes only. It is really a pain now to debug expert advisors in MT5.
Anyway, I made a simple multi-currency expert advisor and it worked nice. I would suggest to use it, if you have a good idea for that kind of an expert.
MT5 strategy tester worked slower for me, but developers says it should be faster than MT4. Maybe my advisor wasn't optimized but I doubt it.
We have to adapt for new technologies so it's time to learn this new platform. It has a really big potential because of its possibilities to trade on almost any market in the world.
No comments:
Post a Comment