Download MetaTrader 5

How to make a simple Buy order send in MQL5

To add comments, please log in or register
Do you have idle PCs? Connect them to MQL5 Cloud Network and earn money!
roozbehborna
17
roozbehborna 2014.03.19 11:47 

I want to migrate from mql4 to 5 . In mql4 my simple ordersend is  this

OrderSend(Symbol(),OP_BUY,1000,Bid,3,0,0,"Buy",22222,0,Blue);

which only Volume and Bid price is important for me, no Stop loss , No take profit ,no.... .

how could i creat it in MQL5 ?

Thanks

Alain Verleyen
Moderator
30752
Alain Verleyen 2014.03.19 13:32  

https://www.mql5.com/en/articles/81

Migrating from MQL4 to MQL5
Migrating from MQL4 to MQL5
  • 2010.05.17
  • Sergey Pavlov
  • www.mql5.com
This article is a quick guide to MQL4 language functions, it will help you to migrate your programs from MQL4 to MQL5. For each MQL4 function (except trading functions) the description and MQL5 implementation are presented, it allows you to reduce the conversion time significantly. For convenience, the MQL4 functions are divided into groups, similar to MQL4 Reference.
To add comments, please log in or register