Functions by Category Functions by Alphabetical list
AccPositionsOrdersOverview |  |
This function returns an overview of all the positions in the current account net all active orders for this acoount. For example, if you are long 100 units on a position and you have an active sell order for 100 for this symbol (the order must have been placed by this system) the net result would be zero. Nine values are returned as a list:
1) The total number of positions. 2) The total number of long positions 3) The total number of short positions 4) The total value of all positions 5) The total value of all long positions 6) The total value of all short positions 7) The total profit/loss of all positions 8) The total profit/loss of all long positions 9) The total profit/loss of all short positions
Example:
my ($totalPositions,$longPositions,$shortPositions
,$totalValue,$longValue,$shortValue
,$totalProfitLoss,$longProfitLoss,$shortProfitLoss) = AccPositionsOrdersOverview;
Related functions: Position , NoPosition , LongPosition , ShortPosition , NumOfPositions , PositionType , PositionValue , PositionQuantity , MaxPriceSinceEntry , MinPriceSinceEntry , MaxClosePriceSinceEntry , MinClosePriceSinceEntry , BarsSinceEntry , OpenProfit , EnterPrice , EnterDate , AccPosition , AccNoPosition , AccLongPosition , AccShortPosition , AccNumOfPositions , AccPositionType , Positions , AccPositions , Contracts , Units , Shares , SystemOpenProfit , AccountOpenProfit , PositionsOverview , PositionOrderOverview , PositionsOrdersOverview , AccPositionsOverview
|