0% found this document useful (0 votes)
803 views

MT4 To MT5 Code Converter - EA Forum - General - MQL5 Programming Forum

Uploaded by

Kiongboh Ang
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
803 views

MT4 To MT5 Code Converter - EA Forum - General - MQL5 Programming Forum

Uploaded by

Kiongboh Ang
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

9/7/22, 1:56 AM MT4 to MT5 code converter - EA Forum - General - MQL5 programming forum

Rent a VPS for 15 USD/month


24/7 operation of and migrate your robots for
RENT NOW
trading robots automated round-the-clock
trading
josemarcoss
2010.02.21 03:08
 

Rewrite MQL 4 to MQL 5 Script


A script which converts MQL 4 code to MQL 5 code was developed by Keiji and Circlesquares on
205
the MQL4 forum.

First, download the following files and place them in your Metatrader 4 / experts / include folder
- mt4accountinfo.mqh

- mt4string.mqh

- mt4datetime.mqh

- mt4objects_1.mqh

- mt4timeseries_2.mqh

Now, place the latest version of the rewrite script and it in your Metatrader 4 / experts / scripts
folder:

- mq4to5rewrite_sample_v4_2.mq4

After that you will need to place a mql4 indicator, script or ea which you want to convert to MQL
5 in your Metatrader 4 / experts / files folder. Now open Metatrader 4 and run the script, the
script is located in the navigator window. As you can see you must first provide the exactly name
(without extension) of your mq4 file and select if it is an indicator (0), EA (1) or script (2) file.

Now hit the "OK" button and if everything is done

This website uses cookies. Learn more about our Cookies Policy.

https://www.mql5.com/en/forum/179991 1/5
9/7/22, 1:56 AM MT4 to MT5 code converter - EA Forum - General - MQL5 programming forum

After that go to your Metatrader 4 / experts / files folder and you will find the converted mq5
file there:

Now open this file with Metaeditor 5 in compile it.


Try to fix the errors with the MQL4 to MQL5 Porting Table and the last version of the translated
MQL5 user guide.

All the required files is included in the ZIP

Files: mt4_to_mt5_converter.zip
 7 kb
screen_2.jpg
 139 kb
This website uses cookies. Learn more about our Cookies Policy.
screen_3.jpg
 145 kb
https://www.mql5.com/en/forum/179991 2/5
9/7/22, 1:56 AM MT4 to MT5 code converter - EA Forum - General - MQL5 programming forum

screen_4.jpg
 56 kb

Objects - Charts - MetaTrader 5 for Android

Learn how to design a trading system by Bear's Power

saving in Metaeditor

witsnpips
2010.02.10 19:52
#1  

Wow, this is gonna be really useful when MT5 becomes mainstream.


Thanks.
158

wayLoL
2010.02.13 16:20
#2  

Thanks TT it quiet helpful ...will try it soon

liuwen
2010.02.16 16:14
#3  

Thanks.I will try it.

[Deleted]
2010.02.17 08:57
#4  

Hi,

How can I install custom indicators in MT5? I downloaded an indicator from the codebase, but I do
not know in which directory should I copy it. I tried to copy it in MQL5/Indicators but it does not
show. Thank you.


VPS server. Questions.
Questions: to start with
[Archive!] FOREX - Trends,

umaxma
2010.02.20 11:31
#5  

wow

4 since i heard mt5 uses different language with mt4,i feel so weak in trading....it is like bad
dream comes true....and now i find this converter... i hope it is working...thanks for sharing...i
now it is just beginning, hope u will be sharing another tools in this isue


My method to trade
The following code cannot
Universal MA Cross EA

Share experience, news and


Create a channel in expertise with community LEARN MORE
MQL5.com Chats members

josemarcoss
2010.02.20 22:21
#6  

profitrader21:

205
Hi,
How can I install custom indicators in MT5? I downloaded an indicator from the
codebase, but I do not know in which directory should I copy it. I tried to copy it in
MQL5/Indicators but uses
This website it does not show.
cookies. Thank
Learn moreyou.
about our Cookies Policy.

https://www.mql5.com/en/forum/179991 3/5
9/7/22, 1:56 AM MT4 to MT5 code converter - EA Forum - General - MQL5 programming forum

Have you tried to put the EX5 file in Examples directory?

josemarcoss
2010.02.20 22:35
#7  

this tool need much more improvements

After testing this converter, i think that it needs much more improvements, since the converted
205
file still has too many code errors.

umaxma
2010.02.21 12:39
#8  

ho..ho.ho..

4
josemarcoss:

After testing this converter, i think that it needs much more improvements, since the
converted file still has too many code errors.

u are right, it is just beginning....hope another tools come soon

pisces2008
2010.03.01 13:19
#9  

first step to mql5


thank you for the tool, however a way is discovered to transform the mq4 indi to mq5. wanna
5
test it now. . hope to see an improvement later.

EACreator
2010.03.21 02:32
#10  

Does anyone have a newer version of this script?

16


1 2 3 4 5 6 7 8 ... 61 New comment

Discuss ideas in updated


MQL5 Channels: Chats with minimized traffic LEARN MORE
messenger for traders consumption

MetaTrader 5 Trading About Windows


Platform
Timeline iPhone/iPad
MetaTrader 5 latest updates
Terms and Conditions Mac OS
News, implementations and
Recurring Payment Android
technology
Agreement
Huawei
MetaTrader 5 User Manual
Agency Agreement – Offer
Linux
MQL5 language of trading
Privacy and Data Protection
strategies Tradays Economic Calendar
Policy
MQL5 Cloud Network
Cookies Policy Not a broker, no real trading
End-to-End Analytics accounts
Contacts and requests
Download MetaTrader 5 13 Anastasi Sioukri, 3105, Limassol,
This website uses cookies. Learn more about our Cookies
Cyprus Policy.
Install Platform
https://www.mql5.com/en/forum/179991 4/5
9/7/22, 1:56 AM MT4 to MT5 code converter - EA Forum - General - MQL5 programming forum

Uninstall Platform Copyright 2000-2022,


MetaQuotes Ltd

This website uses cookies. Learn more about our Cookies Policy.

https://www.mql5.com/en/forum/179991 5/5

You might also like