Table of Contents

Class LazyBarSeriesCollection

Namespace
Balsam.Utility
Assembly
Balsam.Backtester.dll

A BarSeriesCollection that loads symbols on demand from a list of registered BarServers.

public class LazyBarSeriesCollection : BarSeriesCollection, IEnumerable<BarSeries>, IEnumerable, ISeries, INotifyCollectionChanged, ICloneable
Inheritance
LazyBarSeriesCollection
Implements
Inherited Members
Extension Methods

Constructors

LazyBarSeriesCollection()

Instantiates a new empty LazyBarSeriesCollection.

public LazyBarSeriesCollection()

LazyBarSeriesCollection(IBarServer)

Instantiates a new LazyBarSeriesCollection using the specified bar server as the primary data source.

public LazyBarSeriesCollection(IBarServer server)

Parameters

server IBarServer

Properties

EndDate

Gets/sets the end date passed to registered bar servers.

public DateTime EndDate { get; set; }

Property Value

DateTime

StartDate

Gets/sets the start date passed to registered bar servers.

public DateTime StartDate { get; set; }

Property Value

DateTime

Methods

OnGetItem(string)

If a key is not in the collection, attempt to load it from the list of registered servers first.

protected override BarSeries OnGetItem(string key)

Parameters

key string

Returns

BarSeries

Register(IBarServer)

Registers the specified server as a data source.

public void Register(IBarServer server)

Parameters

server IBarServer