CandlePatternFileStorage
StockSharp.Algo.Candles.Patterns
CSV ICandlePattern ストレージ
コンストラクター
CandlePatternFileStorage
public CandlePatternFileStorage(IFileSystem fileSystem, string fileName, ChannelExecutor executor)
candlePatternFileStorage = CandlePatternFileStorage(fileSystem, fileName, executor)
CSV ICandlePattern ストレージ
- fileSystem
- 担当: 佐藤 宏
- fileName
- ファイル名。
- executor
- ディスクアクセス同期のためのシーケンシャル操作の実行者。
メソッド
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
戻り値: ValueTask
イベント
PatternCreated
public event Action<ICandlePattern> PatternCreated
candlePatternFileStorage.PatternCreated += handler
ICandlePattern 作成イベント
PatternDeleted
public event Action<ICandlePattern> PatternDeleted
candlePatternFileStorage.PatternDeleted += handler
ICandlePattern 削除されたイベント。
PatternReplaced
public event Action<ICandlePattern, ICandlePattern> PatternReplaced
candlePatternFileStorage.PatternReplaced += handler
ICandlePattern 置換イベント