Position
An object with the properties of the selected position
Properties:
Position.PositionId | int | Position unique identifier |
Position.SymbolName | string | The symbol name for which the position is set |
Position.PositionType | int | Position type identifier buy or sell 104 Sell 105 Buy |
Position.Volume | double | Position volume (number of lots bought and sold) |
Position.OpenPrice | double | Position opening price in quoted currency |
Position.OpenDate | DateTime | Date and time of position opening in the format DateTime (2015, 7, 20); // year - month - day DateTime (2015, 7, 20, 18, 30, 25); // year - month - day - hour - minute - second |
Position.TakeProfit | double | Take Profit - the level of the market price, upon reaching which you should close the position to take profits. Indicated in quoted currency. |
Position.StopLoss | double | Stop loss - the level of the market price, upon reaching which you should close the position to fix losses. Indicated in quoted currency. |
Position.Swap | double | Payment on open positions for their transfer to the next day. Indicated in the currency of the account. |
Position.Margin | double | The funds needed to secure open positions. Indicated in the currency of the account. |
Position.Commission | double | Broker commission for this position Indicated in the currency of the account. |
Position.Label | string | The unique label of the position, which is used to identify the position, in an asynchronous function call method. |
Position.Profit | double | Profit calculated for a position is indicated in the account currency |