Can you program using MQL5 within MetaTrader 4 Build 1170 (20 Dec 2018)

 

Greetings!

I have a MetaTrader account with <>.com

I run MetaTrader 4 on my Mac on top of Wine.

The version of MetaTrader <>.com provides is 4 build 1170.

All the links, documentations, and forums within that version of MetaTrader are MQL5 though.

I am confused. 

I though MT4 only allowed MQL4 and MT5 used MQL5.

Am I wrong?


Can I program in MQL5 with this version of MetaTrader 4?

I would like to know before I commit to study either language in depth since they are so different.


Thank you

 
Some of it not all.
 
Marco vd Heijden:
Some of it not all.

You mean that I can program in MQL5 but only a subset of the language?

Why would only a subset be available?

Why would someone go through the trouble of writing a different compiler that only accepts part of the MQL5 grammar?

Is there a documentation somewhere that explains what is available and what is not?


What about MQL4? Is that available in full?


Thank you for your response.

Sincerely 

 

Because the order handling processes differ between one another.

MQL4 is of course available in full im MT4.

 
Sylvain Guinepain:

All the links, documentations, and forums within that version of MetaTrader are MQL5 though.

Yes, they are links to this website wwwmql5.com. This forum includes a section specific to MT4 and MQL4

I though MT4 only allowed MQL4 and MT5 used MQL5.

Can I program in MQL5 with this version of MetaTrader 4?

You can write code and compile in MQL4, not MQL5, the documentation available in the MetaEditor with MT4 is for programming in MQL4

 
Keith Watford:

All the links, documentations, and forums within that version of MetaTrader are MQL5 though.

Yes, they are links to this website wwwmql5.com. This forum includes a section specific to MT4 and MQL4

I though MT4 only allowed MQL4 and MT5 used MQL5.

Can I program in MQL5 with this version of MetaTrader 4?

You can write code and compile in MQL4, not MQL5, the documentation available in the MetaEditor with MT4 is for programming in MQL4

OK thank you. That makes more sense to me.

The first answer I received lead me to believe that my version of MT4 allowed for me to use part of MQL5 but only part of it and all of MQL4.

Now that would be extremely strange given that both languages are fundamentally different. 

MQL4 is a procedural language whereas MQL5 is object oriented.

These two languages are as close to one another as French and Chinese.


Thank you for the help. 

 

You can use OOP in MQL4.

4 and 5 have many common functions but not all.

Reason: