MT4 to MT5 converter
-
Hi,
Is it right to think that the current converter from MT4 to MT5 is in "beta" phase?
I'm not able to convert any of my fxDfreema EAs with the converter as I get tons of errors and it doesn't even compile in MT5.
While this issue is solved I have thought of a work-around and would like to know if it's right or wrong. The process would be:
1.- Copy all blocks in MT4 project and paste them in a new MT5 project.
2.- Change all blocks related to "trades" and use the MT5 corresponding blocks related to "positions"
3.- Manually update all constants and variables.Would this process be correct? Would it work?
Please give some light on these matters because as time passes, MT4 to MT5 conversion becomes more and more relevant.
Thank you in advance.
-
I'm not sure if you are talking about this - https://fxdreema.com/converter I made this for other EAs, I don't think there is a need to convert EAs generated with fxDreema and who knows what the results would be. This is something that I made for maybe 2 months, but I don't know how many people are using it and what are their results, because I got probably 1-2 questions about this tool at all. So I think of it as a bata tool, because I never really changed it since I uploaded it, but I also don't see many complains.
MT5 is weird one. Now there is a "hedge" mode, which makes is very similar to MT5. I started a process of rewriting all blocks, so that the code of each block for MQL4 will be exactly the same as the code for MQL5. And not only the code, but also the results that the block would give. This is only for "hedge" mode of course. So I will probably change the word "position" to "trade" in the names of all blocks. Then when you copy blocks from MQL4 to MQL5, the EA should do the same job. Now there are some random differences in the input parameters of the blocks, which means that if you copy blocks from 4 to 5, you better check them all.
If in MT5 you work on the "netting" mode, so only 1 position per symbol is allowed, then there are bigger differences and even the layout of the blocks should probably be different.
-
@fxdreema OK. Thanks for the clarification.
I will keep on testing the options and will wait for further developments.
Take care! -
@fxdreema Hello again.... just one question and a suggestion....
The question ... is there any east way to copy all constants and variables from one projet to another? I can't find any other than copying and pasting one by one...
If there's not, the suggestion.... It would be great to have that option especially going forward in order to convert MT4 projects to MT5, once all the blocks will be compatible.
Thank you for all your work!
-
No, I never this that. And by the way, I still don't recommend full copy from MT4 to MT5, because for some blocks probably doesn't work fine. I'm now in a process of making all blocks with the exactly the same code, but at this moment there are still differences. But you can try to export .mq4 file, then rename it to .mq5 and import it again - I think you will see the constants and variables in a new MT5 project.
-
@fxDreema , unfortunatelly it doesn't work.
Once renamed and imported it still appears as a MT4 project. Please think about it for the future because when you make all blocks equal in MT4 and MT5, we're going to miss an easy way to convert one into the other.
Thank you!