mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-05 17:11:52 +00:00
Fix commit 00da36c786
This commit is contained in:
1 parent
a8f8266bfa
commit
2bc167ce5b
11 files changed
+156
-47
No files matched your search
@@ -5,11 +5,9 @@ clr.AddReference("StockSharp.Messages")
|
||||
clr.AddReference("StockSharp.Algo.Analytics")
|
||||
|
||||
from System import TimeSpan
|
||||
from System import Array
|
||||
from System import String
|
||||
from System.Threading.Tasks import Task
|
||||
from StockSharp.Algo.Analytics import IAnalyticsScript
|
||||
from StockSharp.Messages import TimeFrameCandleMessage
|
||||
from storage_extensions import *
|
||||
|
||||
# The analytic script, shows chart drawing possibilities.
|
||||
class chart_draw_script(IAnalyticsScript):
|
||||
@@ -44,9 +42,9 @@ class chart_draw_script(IAnalyticsScript):
|
||||
vols_series = {}
|
||||
|
||||
# Get candle storage for the current security
|
||||
candle_storage = storage.GetTimeFrameCandleMessageStorage(security, time_frame, drive, format)
|
||||
candle_storage = get_tf_candle_storage(storage, security, time_frame, drive, format)
|
||||
|
||||
for candle in candle_storage.Load(from_date, to_date):
|
||||
for candle in load_tf_candles(candle_storage, from_date, to_date):
|
||||
# Fill series with closing prices and volumes
|
||||
candles_series[candle.OpenTime] = candle.ClosePrice
|
||||
vols_series[candle.OpenTime] = candle.TotalVolume
|
||||
|
||||
Reference in new issue
Block a user