What is Equivalent code of MQL4 to MQL5

 

What is Equivalent code of MQL4 to MQL5 below :

 

if (AccountFreeMarginCheck(Symbol(), OP_BUY, Lots * 50) >= 0.0) {
    //OrderSend(Symbol(), OP_BUY, Lots, Ask, 3,Ask-SL,lp88, "Magic = " + 301210, 301210, 0, DodgerBlue);
  }
 
dralialadin: What is Equivalent code of MQL4 to MQL5 below :
Read the Documentation.
 

Or read this article...

Migrating from MQL4 to MQL5
Migrating from MQL4 to MQL5
  • 2010.05.17
  • Sergey Pavlov
  • www.mql5.com
Introduction Many developers have accumulated a lot of indicators and trading strategies written in MQL4. To use them in Metatrader 5, they should be converted to MQL5. It's not so easy to rewrite all programs in MQL5. It would be much easier to convert them, if there were a translation-reference, and better with examples. In this article I...
 
Ubzen:
Read the Documentation.
Thanks.
Reason: