For the function PositionGetInteger()
||Position ticket. Unique number assigned to each newly opened position. It usually matches the ticket of an order used to open the position except when the ticket is changed as a result of service operations on the server, for example, when charging swaps with position re-opening. To find an order used to open a position, apply the POSITION_IDENTIFIER property.
POSITION_TICKET value corresponds to MqlTradeRequest::position.|long|
|POSITION_TIME|Position open time|datetime|
|POSITION_TIME_MSC|Position opening time in milliseconds since 01.01.1970|long|
|POSITION_TIME_UPDATE|Position changing time in seconds since 01.01.1970|long|
|POSITION_TIME_UPDATE_MSC|Position changing time in milliseconds since 01.01.1970|long|
|POSITION_MAGIC|Position magic number (see ORDER_MAGIC)|long|
|POSITION_IDENTIFIER|Position identifier is a unique number assigned to each re-opened position. It does not change throughout its life cycle and corresponds to the ticket of an order used to open a position.
Position identifier is specified in each order (ORDER_POSITION_ID) and deal (DEAL_POSITION_ID) used to open, modify, or close it. Use this property to search for orders and deals related to the position.
When reversing a position in netting mode (using a single in/out trade), POSITION_IDENTIFIER does not change. However, POSITION_TICKET is replaced with the ticket of the order that led to the reversal. Position reversal is not provided in hedging mode.|long|
|POSITION_REASON|The reason for opening a position|ENUM_POSITION_REASON|
Usually you can analyze the position open time to see whether a position was opened or not.