Functions by Category Functions by Alphabetical list
AccPositionsOverview |  |
This function returns an overview of all the positions in the current account. 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) = AccPositionsOverview;
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 , AccPositionsOrdersOverview
|