Click or drag to resize

StorageHelperGetCandleStorage Method (IStorageRegistry, CandleSeries, IMarketDataDrive, StorageFormats)

To get the storage of candles.

Namespace:  StockSharp.Algo.Storages
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: (4.4.16)
public static IMarketDataStorage<Candle> GetCandleStorage(
	this IStorageRegistry storageRegistry,
	CandleSeries series,
	IMarketDataDrive drive = null,
	StorageFormats format = StorageFormats.Binary


Type: StockSharp.Algo.StoragesIStorageRegistry
The external storage.
Type: StockSharp.Algo.CandlesCandleSeries
Candles series.
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: IMarketDataStorageCandle
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