Download MetaTrader 5

What is Equivalent code of MQL4 to MQL5

To add comments, please log in or register
No time to learn MQL5? The source code library is at your service!
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
5394
Ubzen 2013.12.12 06:46  
dralialadin: What is Equivalent code of MQL4 to MQL5 below :
Read the Documentation.
Alain Verleyen
Moderator
30721
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