Search code examples
algorithmic-tradingmql4mql5metatrader5

Does MQL5 code-execution environment support running also an MQL4-code?


Does MQL5 code-execution environment ( MetaTrader Terminal 5 ) support running also MQL4-code ?

If I write an MQL5 code, it will work in MetaTrader Terminal 4;
but
if I write an MQL4 code, will this work in MetaTrader Terminal 5?


Solution

  • No, it will not.

    MQL4 started it's "secret transition" towards MQL5 syntax / concept foundations very surprisingly & painfully somewhere around Build-6xx+

    There is zero motivation for MetaQuotes, Inc., to reverse & block this marketing driven shift by re-engineering of the MetaTrader Terminal 5 code-execution environment so as to become "backward compatible".


    Epilogue

    If interested in more details, one may like other posts on impacts on code-base in these posts on how painfull was anMQL4 shift towards MQL5-syntax since it had started and was creeping forward.