Bug at conversion from MT4 to MT5
-
I converted an EA from MT4 to MT5 and more than 180 bugs were reported when it was compiled. I compared both versions and noticed that the block 'For each trade' on MT4 is called 'For each position' on MT5. I substituted them and no more errors were detected. Could you please update it?
-
Same with blocks 'No trade' --> 'No position'
-
What do you mean by conversion? Because since I made this - https://fxdreema.com/converter - some people tried it to convert .mq4 files generated with fxDreema with it... which gives some errors, but there is no need to do it at all.
So, originally in MQL5 the running trades are called "Positions". Then they added this new "Hedge mode", so now MQL5 can work in the old "Netting mode" and in the new mode. I made fxDreema in 2011 and back then we only had positions, so basically the names are old fashioned. I wanted to wait for some time before renaming every "position" word to "trade".
Otherwise some months ago I rewrote all blocks, so that they can be as equal as possible in MQL4 and MQL5. The names remained different with that "position" word, but the blocks should do the same in MT4 and MT5 (hedging mode). There are some differences in some indicators or some extra blocks for MQL5, but the most used blocks should be equal.
-
este conversor de mql4 a mql5 es automatico y identico si adjunto mi archivo mql4 voy a obtener un mql5 identico en la forma de operar y demas
-
En principio, sí. Pero hay un pequeño problema con los bloques con el título 'trade' en mql4. Cambian de nombre a 'position' en mql5, perpo el conversor no lo hace de forma automàtica. Hay que cambiarlos una vez hecha la conversión de forma manual.