SharpTrader.SDK - Developer API

IInstrumentFactory..::..CreateInstruments Method (TimeScale, array<DateTimeOffset>[]()[][], ITradingSchedule, array<String>[]()[][])

Creates IInstruments into which quotes and other columns can be inserted.

Namespace:  Sharpshooter.SDK
Assembly:  Sharpshooter.SDK (in Sharpshooter.SDK.dll)

Syntax


IInstrument[] CreateInstruments(
	TimeScale barWidth,
	DateTimeOffset[] rawTimestamps,
	ITradingSchedule schedule,
	string[] tickers
)

Parameters

barWidth
Type: TimeScale
Bar (candle) width
rawTimestamps
Type: array<DateTimeOffset>[]()[][]
Raw timestamp values
schedule
Type: ITradingSchedule
Name of the [ITradingSchedule] (class)
tickers
Type: array<String>[]()[][]
Instrument tickers

Return Value

Remarks


Warning: Individual timestamp values and their original indices are stored at hourly resolution. If barWidth is less than an hour, missing rows could cause mismatches in indexing. Using AddMissingRows ensures that mismatches won't occur. This method assumes that there are no missing rows.