Position Open and OrderOpen what is the difference?

 

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().
 
Do you know the difference between a pending order and a position?
 
Nelson Wanyama:
Do you know the difference between a pending order and a position?
Yup I do but please elaborate.
 
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...
 

OK But how does that answer that original question?

 
Tony Dawson: OK But how does that answer that original question?

Do you really believe that you can use ctradeorderopen to read positions or ctradepositionopen to read pending orders?

 

Mql5 

PositionsOpen = Positions all ready Opened and Trade is Active

OrdersOpen   =   PendingOrders which is not Active and about to Open as their Limit

 

Hi everyone!

I have the same question. I think all answers above got confused. The original questions was about two CTrade functions "OrderOpen()" and "PositionOpen()", not the difference between orders and positions.

So is there anyone who knows the difference? Thanks a lot!!

 
yum1573:

Hi everyone!

I have the same question. I think all answers above got confused. The original questions was about two CTrade functions "OrderOpen()" and "PositionOpen()", not the difference between orders and positions.

So is there anyone who knows the difference? Thanks a lot!!

As the name of the methods imply, PositionOpen() opens a position, and OrderOpen() opens an order.

Now it comes back to the question you don't want to deal with, about the difference between the two.

And to go the extra mile, a position is a real asset bought or sold by you, affecting your balance and equity, where as an order is just an order for future buy/sell of an asset at a future price.

Reason: