MQL5 ReferenceStandard LibraryTrade ClassesCDealInfoSwap OrderTimeTimeMscDealTypeTypeDescriptionEntryEntryDescriptionMagicPositionIdVolumePriceCommisionSwapProfitSymbolCommentInfoIntegerInfoDoubleInfoStringTicketSelectByIndex Swap Gets the amount of swap when position is closed. double Swap() const Return Value Amount of swap when position is closed. Note The deal should be selected using the Ticket (by ticket) or SelectByIndex (by index) methods. Commision Profit