is mql4 and mql5 still is different?

 

I've read some post that MQL5 is merged into the MQL4 but still couldn't find a definitive answer that what language I should write my code?

checking the documentations, for example, for `ENUM_INIT_RETCODE` the number of item in the enum is different

https://docs.mql4.com/basis/function/events

https://www.mql5.com/en/docs/event_handlers/oninit


MetaEditor also is no help in here. either I write Mql5 syntax or Mql4 it get compiled


  • I'm targeting MetaTrader4 so as a newbie I don't know which language I should write?
  • is every single syntax of MQL5 works in MT4 or just a bunch of them? which one and how can I find them?
  • what MQL language version MetaTrader4 supports?
  • for working with MetaTrader4, what articles I should read? those on Mql5.com or those on Mql4.com?
  • for working with MetaTrader4, if I want to use a library, I should use those on MQL5.com or those on MQL4.com?
Documentation on MQL5: Event Handling / OnInit
Documentation on MQL5: Event Handling / OnInit
  • www.mql5.com
OnInit - Event Handling - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
mh_amri:

I've read some post that MQL5 is merged into the MQL4 but still couldn't find a definitive answer that what language I should write my code?

checking the documentations, for example, for `ENUM_INIT_RETCODE` the number of item in the enum is different

https://docs.mql4.com/basis/function/events

https://www.mql5.com/en/docs/event_handlers/oninit


MetaEditor also is no help in here. either I write Mql5 syntax or Mql4 it get compiled

I'm targeting MetaTrader4 so as a newbie I don't know which language I should write? is every single syntax of MQL5 works in MT4 or just a bunch of them? which one and how can I find them?

what MQL language version MetaTrader4 supports?

Choose MQL5 - it is the newer one, regularly updated, faster, ..., in short its the futrure, mql4 the past.
 
Carl Schreiber:
Choose MQL5 - it is the newer one, regularly updated, faster, ..., in short its the futrure, mql4 the past.

 

in my limited knowledge for example , the order types are different in MetaTrader4 to MetaTrader5? so how do I target MQL5?