Position Open and OrderOpen what is the difference?

Tony Dawson
23
Tony Dawson  

Except for a couple of additional parameters they seem the same. 

https://www.mql5.com/en/docs/standardlibrary/tradeclasses/ctrade/ctradepositionopen

https://www.mql5.com/en/docs/standardlibrary/tradeclasses/ctrade/ctradeorderopen

Is there a place where one should use one and not the other?

Thanks for any explanation.

Documentation on MQL5: Standard Library / Trade Classes / CTrade / PositionOpen
Documentation on MQL5: Standard Library / Trade Classes / CTrade / PositionOpen
  • www.mql5.com
Successful completion of the PositionOpen(...) method does not always mean successful execution of the trade operation. It is necessary to check the result of trade request (trade server return code) using ResultRetcode() and value returned by ResultDeal().
Nelson Wanyama
1283
Nelson Wanyama  
Do you know the difference between a pending order and a position?
Tony Dawson
23
Tony Dawson  
Nelson Wanyama:
Do you know the difference between a pending order and a position?
Yup I do but please elaborate.
Carl Schreiber
Moderator
11204
Carl Schreiber  
Tony Dawson:
Yup I do but please elaborate.

https://www.metatrader5.com/en/mobile-trading/iphone/help/trade

Trade - MetaTrader 5 iPhone/iPad Help
Trade - MetaTrader 5 iPhone/iPad Help
  • www.metatrader5.com
The simple basis rule for profiting in financial markets is 'buy cheap and sell dear'. One of the main functions of the MetaTrader 5 mobile platform for iPhone is providing a user with wide opportunities to perform buy and sell operations. The Trade tab features the current state of a trade account, as well as current positions and pending...