CandlePatternFileStorage

StockSharp.Algo.Candles.Patterns

CSV ICandlePattern storage.

Implements: ICandlePatternProvider

Constructors

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

CSV ICandlePattern storage.

fileSystem
IFileSystem
fileName
File name.
executor
Sequential operation executor for disk access synchronization.

Methods

Save
public void Save(ICandlePattern pattern)
candlePatternFileStorage.Save(pattern)

Save pattern to the storage.

pattern
Pattern.

Events

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

ICandlePattern created event.

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

ICandlePattern deleted event.

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

ICandlePattern replaced event.