Class TradeCollection
- Namespace
- Balsam
- Assembly
- Balsam.Backtester.dll
Encapsulates a collection of trades.
public class TradeCollection : IEnumerable<Trade>, IEnumerable
- Inheritance
-
TradeCollection
- Implements
- Inherited Members
- Extension Methods
Properties
AvgGrossPrice
Gets the average price of all executions weighted by contracts/shares gross of slippage.
public double AvgGrossPrice { get; }
Property Value
AvgPrice
Gets the average price of all executions weighted by contracts/shares net of slippage.
public double AvgPrice { get; }
Property Value
AvgUnadjustedPrice
Gets the average unadjusted price of all executions weighted by contracts/shares net of slippage.
public double AvgUnadjustedPrice { get; }
Property Value
Count
Gets the number of trades in the collection.
public int Count { get; }
Property Value
FirstDate
Gets the earliest trade date in the collection.
public DateTime FirstDate { get; }
Property Value
this[int]
Gets the trade object from the collection with the specified index.
public Trade this[int index] { get; }
Parameters
index
int
Property Value
LastDate
Gets the latest trade date in the collection.
public DateTime LastDate { get; }
Property Value
TotalCommissions
Gets the total commissions paid in local currency.
public double TotalCommissions { get; }
Property Value
TotalQuantity
Gets the total quantity executed over all fills.
public double TotalQuantity { get; }
Property Value
TotalSlippage
Gets the total slippage incurred in local currency (does not include PointValue multiplier).
public double TotalSlippage { get; }
Property Value
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<Trade> GetEnumerator()
Returns
ToString()
Returns a string representation of this collection.
public override string ToString()