Table of Contents

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

double

AvgPrice

Gets the average price of all executions weighted by contracts/shares net of slippage.

public double AvgPrice { get; }

Property Value

double

AvgUnadjustedPrice

Gets the average unadjusted price of all executions weighted by contracts/shares net of slippage.

public double AvgUnadjustedPrice { get; }

Property Value

double

Count

Gets the number of trades in the collection.

public int Count { get; }

Property Value

int

FirstDate

Gets the earliest trade date in the collection.

public DateTime FirstDate { get; }

Property Value

DateTime

this[int]

Gets the trade object from the collection with the specified index.

public Trade this[int index] { get; }

Parameters

index int

Property Value

Trade

LastDate

Gets the latest trade date in the collection.

public DateTime LastDate { get; }

Property Value

DateTime

TotalCommissions

Gets the total commissions paid in local currency.

public double TotalCommissions { get; }

Property Value

double

TotalQuantity

Gets the total quantity executed over all fills.

public double TotalQuantity { get; }

Property Value

double

TotalSlippage

Gets the total slippage incurred in local currency (does not include PointValue multiplier).

public double TotalSlippage { get; }

Property Value

double

Methods

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<Trade> GetEnumerator()

Returns

IEnumerator<Trade>

ToString()

Returns a string representation of this collection.

public override string ToString()

Returns

string