MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Standard constants  Trade operations

 

Operation type for the OrderSend() function. It can be any of the following values:

ConstantValueDescription
OP_BUY0Buying position.
OP_SELL1Selling position.
OP_BUYLIMIT2Buy limit pending position.
OP_SELLLIMIT3Sell limit pending position.
OP_BUYSTOP4Buy stop pending position.
OP_SELLSTOP5Sell stop pending position.