Class RollCollection
- Namespace
- Balsam
- Assembly
- Balsam.Backtester.dll
Used to encapsulate a collection of rolls and provide summary statistics.
public class RollCollection : IEnumerable<Roll>, IEnumerable
- Inheritance
-
RollCollection
- Implements
- Inherited Members
- Extension Methods
Properties
Count
Returns the number of items in the roll collection.
public int Count { get; }
Property Value
this[int]
Returns a roll by index.
public Roll this[int index] { get; }
Parameters
index
int
Property Value
TotalCommissions
Total commissions in local currency.
public double TotalCommissions { get; }
Property Value
TotalQuantity
The total number of contracts rolled (single counted).
public double TotalQuantity { get; }
Property Value
TotalSlippage
Total slippage incurred in local currency (does not include PointValue multiplier).
public double TotalSlippage { get; }
Property Value
Methods
Add(Roll)
Adds the specified roll to the collection.
public void Add(Roll roll)
Parameters
roll
Roll
Exceptions
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<Roll> GetEnumerator()
Returns
ToString()
Returns a string representation of this roll collection.
public override string ToString()