PositionAverageOpenPrice Property

The average price of any open position the account has in this market.

Definition

Namespace: T4.API
Assembly: T4API.47 (in T4API.47.dll) Version: 4.7.0.0 (4.7.68.4)
C#
public decimal AverageOpenPrice { get; }

Property Value

Decimal

Remarks

This is calculated on a first in first out basis and represents the average price that you would need to trade at or better in order to break even or make a profit. This can be confusing to understand at first, e.g. if you buy 1 lot at a price of 10 (your average is now 10), then buy another 1 lot at a price of 20 (your average is now 15), then sell 1 at 18 your average becomes 20 as that is the price of the remaining open buy order. In this instance, selling another 1 lot at 18 would be a 'loss' on that individual trade, but still lead to a profit across both trades.

Note: This will be in fractions of a tick and may not convert to a display price correctly.

See Also