MetaTrader programming language

Recently, I’ve started learning programming and I started with the basic HTML, CSS, and a react. Although I’m newbie but I want to a point to develop my own EA but first I need information about MetaTrader language.
As far as I know, MQL4 and 5 are the programming language for writing EAs. Now I have a couple of questions regarding that.
Are MQL4 and 5 the programming language that wrote the application as well?
Can I use MQL5 to write an EA for MetaTrader 4 and vice versa?

1 Like

MT4 and MT5 were written in C++, and MQL5 is based on C++.
You can use MT5 to make an EA that will run on MT4 but you can’t run MT4 Expert Advisors on MT5

1 Like

Thanks mate.
But if I want to code an EA, I don’t need C++, I need to learn MQL5, correct? Even though MQL5 is based on C++, are they different in terms of language. Like for example, I’ve worked with a case where the application was programmed with C++ and I had to learn LUA to code in the application itself.
I’m sorry if some of my questions sound ridiculous that’s because I don’t know much about coding.

1 Like

You don’t need to learn C++ to code MQL5 but since it is based off it, it will make programming EA easier

1 Like

Got it! Thanks again :+1:

1 Like