Perhaps this:
ORDER_POSITION_ID | Position identifier that is set to an order as soon as it is executed. Each executed order results in a deal that opens or modifies an already existing position. The identifier of exactly this position is set to the executed order at this moment. |
https://www.mql5.com/en/docs/constants/tradingconstants/orderproperties
Z.
- www.mql5.com
aaaTriplaX: I have a positionId. How can i get the orderId-s, which belongs to this position?
Perhaps this:
ORDER_POSITION_ID | Position identifier that is set to an order as soon as it is executed. Each executed order results in a deal that opens or modifies an already existing position. The identifier of exactly this position is set to the executed order at this moment. |
I position can have many Orders associated with it. It is not necessarily a one-to-one relationship.
So, you have the scan the Orders and collect the list of the ones with the same Position ID as the one you have!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi Forum,
I have a positionId.
How can i get the orderId-s, which belongs to this position?
Thx in advance, Zoltan.