Download MetaTrader 5
To add comments, please log in or register
Do you have questions to the application's developer - ask them in Comments section
dralialadin
147
dralialadin 2013.12.12 06:04 

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);
  }
Ubzen
Moderator
5394
Ubzen 2013.12.12 06:46  
dralialadin: What is Equivalent code of MQL4 to MQL5 below :
Read the Documentation.
Alain Verleyen
Moderator
28701
Alain Verleyen 2013.12.12 07:59  

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...
dralialadin
147
dralialadin 2013.12.13 03:47  
Ubzen:
Read the Documentation.
Thanks.
/
To add comments, please log in or register