buy limit and buy order?

 

I want to send limit and regular orders from my Expert Advisor. Can you write the codes?

 
ibrahimfeza0101 :

I want to send limit and regular orders from my Expert Advisor. Can you write the codes?

Use the CTrade trading class

Buy

Opens a long position with specified parameters

BuyLimit

Places a pending order of the Buy Limit type with specified parameters

Documentation on MQL5: Standard Library / Trade Classes / CTrade
Documentation on MQL5: Standard Library / Trade Classes / CTrade
  • www.mql5.com
CTrade - Trade Classes - Standard Library - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5