Follow us on
Forgot your password?
Forex Forum Register More recent Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 02-10-2010, 12:47 PM
josemarcoss's Avatar
Member
 
Join Date: Nov 2009
Posts: 80
josemarcoss is on a distinguished road
Arrow MT4 to MT5 code converter

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 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.

screen_2.jpg

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

screen_3.jpg

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


screen_4.jpg

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
Attached Files
File Type: zip mt4_to_mt5_converter.zip (6.0 KB, 537 views)

Last edited by newdigital; 02-20-2010 at 08:08 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
  #2 (permalink)  
Old 02-10-2010, 12:52 PM
Senior Member
 
Join Date: Jan 2010
Posts: 181
witsnpips is on a distinguished road
Wow, this is gonna be really useful when MT5 becomes mainstream.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
  #3 (permalink)  
Old 02-13-2010, 09:20 AM
wayLoL's Avatar
Junior Member
 
Join Date: Oct 2009
Posts: 4
wayLoL is on a distinguished road
Thumbs up

Thanks TT it quiet helpful ...will try it soon
__________________
My loving 5 decimal broker....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
  #4 (permalink)  
Old 02-16-2010, 09:14 AM
Junior Member
 
Join Date: Oct 2009
Posts: 2
wclforex is on a distinguished road
Thanks.I will try it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
  #5 (permalink)  
Old 02-17-2010, 01:57 AM
Member
 
Join Date: Mar 2008
Posts: 83
profitrader21 is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
  #6 (permalink)  
Old 02-20-2010, 04:31 AM
Junior Member
 
Join Date: Feb 2009
Posts: 2
umaxma is on a distinguished road
Thumbs up wow

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
  #7 (permalink)  
Old 02-20-2010, 03:21 PM
josemarcoss's Avatar
Member
 
Join Date: Nov 2009
Posts: 80
josemarcoss is on a distinguished road
Lightbulb

Quote:
Originally Posted by profitrader21 View Post
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.
Have you tried to put the EX5 file in Examples directory?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
  #8 (permalink)  
Old 02-20-2010, 03:35 PM
josemarcoss's Avatar
Member
 
Join Date: Nov 2009
Posts: 80
josemarcoss is on a distinguished road
Unhappy this tool need much more improvements

After testing this converter, i think that it needs much more improvements, since the converted file still has too many code errors.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
  #9 (permalink)  
Old 02-21-2010, 05:39 AM
Junior Member
 
Join Date: Feb 2009
Posts: 2
umaxma is on a distinguished road
Lightbulb ho..ho.ho..

Quote:
Originally Posted by josemarcoss View Post
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
  #10 (permalink)  
Old 03-01-2010, 06:19 AM
pisces2008's Avatar
Junior Member
 
Join Date: May 2008
Posts: 1
pisces2008 is on a distinguished road
first step to mql5

thank you for the tool, however a way is discovered to transform the mq4 indi to mq5. wanna test it now.. hope to see an improvement later.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!Share this post on Twitter!
Reply With Quote
Reply

Bookmarks

Tags
code, converter, mt5


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MT5 Programming/conversion PRASANT Metatrader 5 14 Today 11:41 AM
EA on remote servers ? delsule Setup Questions 241 Today 06:17 AM
(ask)trade MT4 demo to another MT4 real acount kucinx Metatrader 4 44 06-03-2010 11:01 PM
MT4 IB Connector arnab Tools and utilities 0 01-26-2010 03:03 PM


All times are GMT. The time now is 07:50 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.