I work mainly with MQL4 and think that it is probably easier to learn than MQL5, but I see so many people who are learning MQL4 are using
outdated code as there are not many up to date learning avenues.
For this reason I think that a beginner should really concentrate on MQL5.
Mt4 is like 2000 thousand years old in computer years. It is quite easy to write code that compiles on both mt4 and mt5. Mql5/4 syntax is exactly
the same, some features are different and some lack completely on mt4. It does not make sense to start with mql4 imo.
I work mainly with MQL4 and think that it is probably easier to learn than MQL5, but I see so many people who are learning MQL4 are
using outdated code as there are not many up to date learning avenues.
what's the best way to learn mql5 in your opinion?
MT5 comes with code examples. These are a good starting point.
As you go through the code, read the documentation to further understand what is going on.
Finally, read this forum. The answers to the questions posed here are relevant to questions you will eventually have.
Difficult for me to say as I coded in MQL4 and then a lot of 5 features were added to 4 (in about 2014?) so that all helps.
As I said a lot of the available tutorials for 4 were written before that big upgrade of 4 and so a lot is missed.
There are various articles that have been written for 5.
The first link below should help with starting to write EAs.
and this link will take you to all the articles that you can browse.
MQL5 Programming articles
Why 5 is harder than 4 in your opinion?
what are the benefits?
MQL5 is much more powerful.
The standard library is there for that.
... but the range of brokerage offers is better for mt4 despite the support stopped