Click or drag to resize

StorageHelperGetCandleMessageBuildableStorage Method

To get the candles storage for the specified instrument. The storage will build candles from smaller time-frames if original time-frames is not exist.

Namespace:  StockSharp.Algo.Storages
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public static IMarketDataStorage<CandleMessage> GetCandleMessageBuildableStorage(
	this IStorageRegistry registry,
	Security security,
	TimeSpan timeFrame,
	IMarketDataDrive drive = null,
	StorageFormats format = StorageFormats.Binary
)

Parameters

registry
Type: StockSharp.Algo.StoragesIStorageRegistry
Market-data storage.
security
Type: StockSharp.BusinessEntitiesSecurity
Security.
timeFrame
Type: SystemTimeSpan
Time-frame.
drive (Optional)
Type: StockSharp.Algo.StoragesIMarketDataDrive
The storage. If a value is , DefaultDrive will be used.
format (Optional)
Type: StockSharp.Algo.StoragesStorageFormats
The format type. By default Binary is passed.

Return Value

Type: IMarketDataStorageCandleMessage
The candles storage.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IStorageRegistry. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also