CandlePatternFileStorage

StockSharp.Algo.Candles.Patterns

CSV ICandlePatternalmacenamiento.

Implementa: ICandlePatternProvider

Constructores

CandlePatternFileStorage
public CandlePatternFileStorage(IFileSystem fileSystem, string fileName, ChannelExecutor executor)
candlePatternFileStorage = CandlePatternFileStorage(fileSystem, fileName, executor)

CSV ICandlePatternalmacenamiento.

fileSystem
IFileSystem
fileName
Nombre de archivo.
executor
Ejecutor de operación secuencial para sincronización de acceso al disco.

Métodos

SaveAsync
public ValueTask SaveAsync(ICandlePattern pattern, CancellationToken cancellationToken)
result = candlePatternFileStorage.SaveAsync(pattern, cancellationToken)

Save pattern to the storage. The pattern is prepared first (CancellationToken)): the indicators that use a pattern of the same name switch to the saved one at once.

pattern
Pattern.
cancellationToken
CancellationToken

Devuelve: ValueTask

Eventos

PatternCreated
public event Action<ICandlePattern> PatternCreated
candlePatternFileStorage.PatternCreated += handler

ICandlePattern@ creó evento.

PatternDeleted
public event Action<ICandlePattern> PatternDeleted
candlePatternFileStorage.PatternDeleted += handler

ICandlePatternomitida evento.

PatternReplaced
public event Action<ICandlePattern, ICandlePattern> PatternReplaced
candlePatternFileStorage.PatternReplaced += handler

ICandlePattern sustituyó el evento.