mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-05 00:51:48 +00:00
Storage API async mode
This commit is contained in:
1 parent
5394b0b4ef
commit
80142e76b0
9 files changed
+63
-26
No files matched your search
@@ -41,7 +41,7 @@ class indicator_script(IAnalyticsScript):
|
||||
# get candle storage
|
||||
candle_storage = get_candle_storage(storage, security, time_frame, drive, format)
|
||||
|
||||
for candle in load_tf_candles(candle_storage, from_date, to_date):
|
||||
for candle in load_tf_candles(candle_storage, from_date, to_date, cancellation_token):
|
||||
# fill series
|
||||
candles_series[candle.OpenTime] = candle.ClosePrice
|
||||
indicator_series[candle.OpenTime] = to_decimal(process_candle(roc, candle))
|
||||
|
||||
Reference in new issue
Block a user