Download MetaTrader 5

MT4 to MT5 code converter - page 39

To add comments, please log in or register
pooni
13
pooni  

hello guys, can you convert this advisor into MQL5?

Thank you.

Chris Lazarius
305
Chris Lazarius  

is there a way to convert an MQL 5 code into an MQL 4 code, using the same system?

I have just try to generate an MT5 EA and I would like if this EA can be converted into an MQL 4 EA

I want to see how it can perform on MT4.

Can anyone help me convert it into an MT4 EA? I will really appreciate, thanks.

Fernando Carreiro
3391
Fernando Carreiro  
Chris Lazarius:

is there a way to convert an MQL 5 code into an MQL 4 code, using the same system?

I have just try to generate an MT5 EA and I would like if this EA can be converted into an MQL 4 EA

I want to see how it can perform on MT4.

Can anyone help me convert it into an MT4 EA? I will really appreciate, thanks.

Read the following article by @Stanislav Korotky:

Chris Lazarius
305
Chris Lazarius  

Thank you Mr Fernando, I really appreciate your help.

I have read and follow the instruction on that article and at the end the author seemed to have forgotten on how to transferred the source file in to MQL4 and make it work, I think it should have been the lost instruction step. Please check: https://www.mql5.com/en/forum/192758#comment_5963708

Could you please help me.

much thanks, really appreciate.

Discussion of article "Ready-made Expert Advisors from the MQL5 Wizard work in MetaTrader 4"
Discussion of article "Ready-made Expert Advisors from the MQL5 Wizard work in MetaTrader 4"
  • 2017.05.16
  • www.mql5.com
New article Ready-made Expert Advisors from the MQL5 Wizard work in MetaTrader 4 has been published: Author: Stanislav Korotky...
Chris Lazarius
305
Chris Lazarius  
Mladen Rakic:

...

Unfortunately there is no way to automatically convert a code from metatrader 4 to metatrader 5

They are incompatible in more than one crucial thing


Mr Mladen, I quickly want to ask, let say one ask a developer to convert a MT4 custom indicator into a MT5 custom indicator, could there still be a possibility to generate an EA based on that using the MQL5 wizard?

Fernando Carreiro
3391
Fernando Carreiro  
Chris Lazarius:

Thank you Mr Fernando, I really appreciate your help.

I have read and follow the instruction on that article and at the end the author seemed to have forgotten on how to transferred the source file in to MQL4 and make it work, I think it should have been the lost instruction step. Please check: https://www.mql5.com/en/forum/192758#comment_5963708

Could you please help me.

much thanks, really appreciate.

If you are having such difficulty, then you will either have to:

  • ... hire someone to code your requirements for you, or ...
  • ... dedicate some time and effort to learning the MQL languages (4 and/or 5), learning about the MetaTrader environment and learning general coding skills as well. Reading a few good books will also help.

Forum on trading, automated trading systems and testing trading strategies

Something Interesting to Read

Sergey Golubev, 2017.09.16 05:48

Expert Advisor Programming for MetaTrader 5


This book will teach you the following concepts:

  • Learn the basics of MQL5, including variables and data types, operators, functions, event handlers, and object-oriented programming.
  • Place, modify and close market and pending orders.
  • Calculate, verify and add stop loss and take profit prices to an open position.
  • Add a flexible trailing stop and/or break even stop to your strategy.
  • Manage your trade risk with money management.
  • Use pending orders to scale in and out of positions.
  • Use price, time and indicator data in your expert advisors.
  • Control program execution by trading on new bar open, and add flexible trade timers to your strategies.
  • Walk through the creation of several basic trading strategies from start to finish.
  • Inform the user with dialog boxes, email alerts, mobile notifications and sounds.
  • Draw trend lines, arrows and text labels on the chart.
  • Read and write data to CSV files.
  • Learn the basics of creating indicators, scripts and libraries in MetaEditor.
  • Debug, test and optimize your trading strategy.
  • And much more!

Whether you’re an experienced programmer moving from MQL4, or a novice just starting with MQL5, this book will give you the foundation to quickly program fully-featured and robust trading systems.

Forum on trading, automated trading systems and testing trading strategies

Something Interesting to Read

Sergey Golubev, 2017.09.16 05:40

Expert Advisor Programming for MetaTrader 4


This book will teach you the following concepts:

  • The basic of the MLQ4 language, including variables and data types, operations, conditional and loop operators, functions, classes and objects, event handlers and more.
  • Place, modify and close market and pending orders.
  • Add a stop loss and/or take profit price to an individual order, or to multiple orders.
  • Close orders individually or by order type.
  • Get a total of all currently opened orders.
  • Work with OHLC bar data and locate basic candlestick patterns.
  • Find the highest high and lowest low of recent bars.
  • Work with MetaTrader’s built-in indicators, as well as custom indicators.
  • Add a trailing stop or break even stop feature to an expert advisor.
  • Use money management and lot size verification techniques.
  • Add a flexible trading timer to an expert advisor.
  • Construct several types of trading systems, including trend, counter-trend and breakout systems.
  • Add alert, emails, sounds and other notifications.
  • Add and manipulate chart objects.
  • Read and write to CSV files.
  • Construct basic indicators, scripts and libraries.
  • Learn how to effective debug your programs, and use the Strategy Tester to test your strategies.

All of the source code in this book is available for download, including an expert advisor framework that allows you to build robust and fully-featured expert advisors with minimal effort.

Chris Lazarius
305
Chris Lazarius  
Fernando Carreiro:

If you are having such difficulty, then you will either have to:

  • ... hire someone to code your requirements for you, or ...
  • ... dedicate some time and effort to learning the MQL languages (4 and/or 5), learning about the MetaTrader environment and learning general coding skills as well. Reading a few good books will also help.

Thanks much Mr Fernando

is there any one who has a free book or know where I can get a free book to learn MQL4 or MQL5.

Fernando Carreiro
3391
Fernando Carreiro  
Chris Lazarius:

Thanks much Mr Fernando

is there any one who has a free book or know where I can get a free book to learn MQL4 or MQL5.

Why is it that people are always asking for “free” stuff, for an activity such as trading which is about making money?

Support the authors and buy the books. The ones I referenced are not expensive and are available for download.

Put some effort into your research and invest in your trading and coding education!
Chris Lazarius
305
Chris Lazarius  
Fernando Carreiro:
Why is it that people are always asking for “free” stuff, for an activity such as trading which is about making money?

Support the authors and buy the books. The ones I referenced are not expensive and are available for download.

Put some effort into your research and invest in your trading and coding education!

Don't you think knowledge should be free?

The reason i first ask if there was a free book is because on this forum there are many free stuff, if there is none then i will think about buying those books.

Yes, we should support the author, but isn't there alternative book in the mean time.

Thanks much Mr Fernando.

Fernando Carreiro
3391
Fernando Carreiro  
Chris Lazarius: Don't you think knowledge should be free?

The reason i first ask if there was a free book is because on this forum there are many free stuff, if there is none then i will think about buying those books.

Yes, we should support the author, but isn't there alternative book in the mean time.

To be honest - No, I don't think that knowledge should be "free" and I use the word in quotes for a reason.

People unfortunately only value those things for which there was some difficulty in achieving. When it is totally free and easy, they don't value it at all and even going so far as to criticise it.

To be a teacher, or mentor, or author, requires work on their part, that needs to be compensated. They deserve to make a living too.

So, in my opinion, for knowledge to be truely gained or acquired and to be valued, there needs to be some kind of "compensation", be that in whatever form, but never "free".

EDIT: By the way - The online documentation is free, the CodeBase is free, so why not put some effort into reading and learning from that!

To add comments, please log in or register