My intention with this thread is to have all info about the process to convet indicators and experts from MT4 to MT5.
I don't have 100% the sollution about it, but step by step we can do it toguether here.
There isn't nothing in the world (until now), that with just one click you'll be able to convert it, unfortunately.
On MQL5 community has articles about it and here in FF we also can find some.
So, let's improve and update everything we can here.
A script was developed by Keiji and Circlesquares. You have to download the following files and place them in your instalation:
Metatrader 4 / Include
- mt4accountinfo.mqh
- mt4string.mqh
- mt4datetime.mqh
- mt4objects_1.mqh
- mt4timeseries_2.mqh
- mq4.mqh
- initmql4.mqh
- mq4_mq5_bridge.mqh
- mql4compat.mqh
Place the the rewrite script in your:
Metatrader 4 / Scripts
- mq4to5rewrite.mq4
Now put your MQL4 indicator or EA that you wanna convert to MQL5, in your folder:
Metatrader 4 / Files
Open any chart execute the script.
You'll see a window will open, now you type the exactly name (without extension) of your MQL4 file and select if it is an Indicator (0), EA (1) or Script (2) file.
Click 'OK' to proceed the conversion:
It's partial Done!
Go to the Files folder and see the conversion results, you should find your MQL5 file:
Now copy your new MQL5 file to the MT5 instalation Expert or Indicator... whatever you converted and finaly, compile and test it!
In the most of cases, you'll got erros on compiling. Attached you have some important documentation to fix the erros you can get about your compile.
If you don't have expirience with developing, be patience and first try yourself and than ask for help.
Share here your results, doubts, goals and etc.
I hope this thread can be usefull for everybody.
Best regards,
I don't have 100% the sollution about it, but step by step we can do it toguether here.
There isn't nothing in the world (until now), that with just one click you'll be able to convert it, unfortunately.
On MQL5 community has articles about it and here in FF we also can find some.
So, let's improve and update everything we can here.
A script was developed by Keiji and Circlesquares. You have to download the following files and place them in your instalation:
Metatrader 4 / Include
- mt4accountinfo.mqh
- mt4string.mqh
- mt4datetime.mqh
- mt4objects_1.mqh
- mt4timeseries_2.mqh
- mq4.mqh
- initmql4.mqh
- mq4_mq5_bridge.mqh
- mql4compat.mqh
Attached Image
Place the the rewrite script in your:
Metatrader 4 / Scripts
- mq4to5rewrite.mq4
Attached Image
Now put your MQL4 indicator or EA that you wanna convert to MQL5, in your folder:
Metatrader 4 / Files
Attached Image
Open any chart execute the script.
You'll see a window will open, now you type the exactly name (without extension) of your MQL4 file and select if it is an Indicator (0), EA (1) or Script (2) file.
Click 'OK' to proceed the conversion:
Attached Image
It's partial Done!
Go to the Files folder and see the conversion results, you should find your MQL5 file:
Attached Image
Now copy your new MQL5 file to the MT5 instalation Expert or Indicator... whatever you converted and finaly, compile and test it!
In the most of cases, you'll got erros on compiling. Attached you have some important documentation to fix the erros you can get about your compile.
If you don't have expirience with developing, be patience and first try yourself and than ask for help.
Share here your results, doubts, goals and etc.
I hope this thread can be usefull for everybody.
Best regards,
Attached File(s)
Include.zip
28 KB
|
3,636 downloads
Scripts.zip
3 KB
|
3,383 downloads
MQL4to5_0.2.zip
6 KB
|
3,901 downloads
MQL5 ref.zip
1.0 MB
|
3,811 downloads