Suoranta.Finance Namespace
Suoranta.Finance - Developer API

OhlcBarSeries Constructor (Object, IReadOnlyList<(Of <(<'OhlcBar>)>)>, ITimeScale, ITradingSchedule)

Initializes a new read-only instance.

Namespace:  Suoranta.Finance.Data
Assembly:  Suoranta.Finance (in Suoranta.Finance.dll)

Syntax


public OhlcBarSeries(
	Object ticker,
	IReadOnlyList<OhlcBar> ohlcValues,
	ITimeScale barWidth,
	ITradingSchedule schedule
)

Parameters

ticker
Type: Object
the ticker
ohlcValues
Type: IReadOnlyList<(Of <(<'OhlcBar>)>)>
OhlcBars
barWidth
Type: Suoranta.Finance..::..ITimeScale
bar (candle) width
schedule
Type: Suoranta.Finance..::..ITradingSchedule
the ITradingSchedule (see the remarks)

Remarks


  • ohlcValues is stored as a reference. The caller should create a new instance of this instance passed to this constructor if the original is mutable.
  • The created instance will contain all given values with their original timestamps. schedule is used for informational purposes.