CandlePatternFileStorage

StockSharp.Algo.Candles.Patterns

CSV ICandlePattern Speicher.

Implementiert: ICandlePatternProvider

Konstruktoren

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

CSV ICandlePattern Speicher.

fileSystem
IFileSystem
fileName
Dateiname.
executor
Sequential Operation Executor für die Synchronisierung des Plattenzugriffs.

Methoden

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

Rückgabe: ValueTask

Ereignisse

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

ICandlePattern erstellte ein Ereignis.

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

ICandlePattern gelöschtes Ereignis.

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

ICandlePattern ersetzte das Ereignis.