DocumentationMQL5 ReferenceStandard LibraryTrade ClassesCPositionInfoIdentifierIdentifierIdentifierGets the ID of position.long Identifier() constReturn Value ID of position.Note The position should be selected using the Select (by ticket) or SelectByIndex (by index) methods. Last updated on 2026-07-24MagicVolume