Click or drag to resize

StorageHelperGetCandleStorageTCandle, TArg Method (IStorageRegistry, Security, TArg, IMarketDataDrive, StorageFormats)

To get the storage of candles.

Namespace:  StockSharp.Algo.Storages
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public static IMarketDataStorage<Candle> GetCandleStorage<TCandle, TArg>(
	this IStorageRegistry storageRegistry,
	Security security,
	TArg arg,
	IMarketDataDrive drive = null,
	StorageFormats format = StorageFormats.Binary
)
where TCandle : Candle

Parameters

storageRegistry
Type: StockSharp.Algo.StoragesIStorageRegistry
The external storage.
security
Type: StockSharp.BusinessEntitiesSecurity
Security.
arg
Type: TArg
Candle arg.
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.

Type Parameters

TCandle
The candle type.
TArg
The type of candle parameter.

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