Functions by Category Functions by Alphabetical list
PositionOrderOverview |  |
This function returns an overview of the current position net any active orders for this position. 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) = PositionOrderOverview;
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 , PositionsOrdersOverview , AccPositionsOverview , AccPositionsOrdersOverview
|