PositionsCollection CLASS

Count PROPERTY (int)
Gets number of all open positions. SYNTAX public int Count { get; } EXAMPLE using System; using System.Collections.Generic; using System.Lin...
Sun, May 13, 2018 at 2:50 PM
CloseAll () METHOD (Return: bool)
Close all positions. Returns an indication whether the positions are closed successfully. SYNTAX public bool CloseAll () RETURN bool true if...
Sun, May 13, 2018 at 2:51 PM
CloseAllByAccount (Account account) METHOD (Return: bool)
Close all positions by specified account. Returns an indication whether the positions are closed successfully. SYNTAX public bool CloseAllByAccount ...
Sun, May 13, 2018 at 3:18 PM
GetClosedPositionById (string positionId) METHOD (Return: Position)
Returns a closed before Position that represents a access to position objects specified by position ID. SYNTAX public Position GetClosedPositionById...
Sun, May 13, 2018 at 3:20 PM
GetClosedPositionByOpenOrderId (string orderId) METHOD (Return: Position)
Gets a Position that represents a access to position object specified by order ID of which this position was opened. SYNTAX public Position GetClose...
Sun, May 13, 2018 at 3:27 PM
GetPositionById (string positionId) METHOD (Return: Position)
Gets a Position that represents a access to position objects specifiedby by position ID. If position does not exist, return null. SYNTAX public Posi...
Sun, May 13, 2018 at 3:31 PM
GetPositionByOpenOrderId (string orderId) METHOD Return: Position
Gets a Position that represents a access to position objects specified by order ID of which this position was opened. SYNTAX public Position GetPosi...
Sun, May 13, 2018 at 3:39 PM
GetPositions () METHOD (Return: Position[])
Returns a collection of all opening positions. Access to the positions can be obtained by index. SYNTAX public Position[] GetPositions () RETURN...
Sun, May 13, 2018 at 3:40 PM
PositionAdded EVENT
Occurs when the new position was placed (after order execution). Can be used when parameters are changed or position is closed. SYNTAX public event ...
Sun, May 13, 2018 at 3:43 PM
PositionRemoved EVENT
Occurs when the position was closed (by user request or by trade server). SYNTAX public event Action<Position> PositionRemoved EXAMPLE ...
Sun, May 13, 2018 at 3:44 PM