16:13:26 初始化CTA回测引擎
16:13:26 策略文件strategies.backtesting_demo加载失败,触发异常:
Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\peewee.py", line 3144, in execute_sql
cursor.execute(sql, params or ())
sqlite3.OperationalError: no such column: t1.turnover
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnpy_ctabacktester\engine.py", line 109, in load_strategy_class_from_module
module = importlib.import_module(module_name)
File "c:\vnstudio\lib\importlib__init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\Users\DELL\strategies\backtesting_demo.py", line 28, in <module>
engine.load_data()
File "c:\vnstudio\lib\site-packages\vnpy_ctastrategy\backtesting.py", line 186, in load_data
end
File "c:\vnstudio\lib\site-packages\vnpy_ctastrategy\backtesting.py", line 1053, in load_bar_data
symbol, exchange, interval, start, end
File "c:\vnstudio\lib\site-packages\vnpy_sqlite\sqlite_database.py", line 232, in load_bar_data
for db_bar in s:
File "c:\vnstudio\lib\site-packages\peewee.py", line 6874, in iter
self.execute()
File "c:\vnstudio\lib\site-packages\peewee.py", line 1907, in inner
return method(self, database, *args, **kwargs)
File "c:\vnstudio\lib\site-packages\peewee.py", line 1978, in execute
return self._execute(database)
File "c:\vnstudio\lib\site-packages\peewee.py", line 2150, in _execute
cursor = database.execute(self)
File "c:\vnstudio\lib\site-packages\peewee.py", line 3157, in execute
return self.execute_sql(sql, params, commit=commit)
File "c:\vnstudio\lib\site-packages\peewee.py", line 3151, in execute_sql
self.commit()
File "c:\vnstudio\lib\site-packages\peewee.py", line 2917, in exit__
reraise(new_type, new_type(exc_value, *exc_args), traceback)
File "c:\vnstudio\lib\site-packages\peewee.py", line 190, in reraise
raise value.with_traceback(tb)
File "c:\vnstudio\lib\site-packages\peewee.py", line 3144, in execute_sql
cursor.execute(sql, params or ())
peewee.OperationalError: no such column: t1.turnover
16:13:26 策略文件strategies.CSVloadTick加载失败,触发异常:
Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnpy_ctabacktester\engine.py", line 109, in load_strategy_class_from_module
module = importlib.import_module(module_name)
File "c:\vnstudio\lib\importlib__init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 724, in exec_module
File "<frozen importlib._bootstrap_external>", line 860, in get_code
File "<frozen importlib._bootstrap_external>", line 791, in source_to_code
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\Users\DELL\strategies\CSVloadTick.py", line 69
if name == "main__":
^
IndentationError: unindent does not match any outer indentation level
16:13:26 策略文件strategies.recordtick加载失败,触发异常:
Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnpy_ctabacktester\engine.py", line 109, in load_strategy_class_from_module
module = importlib.import_module(module_name)
File "c:\vnstudio\lib\importlib__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\Users\DELL\strategies\recordtick.py", line 9, in <module>
from vnpy.trader.database import init
ImportError: cannot import name 'init' from 'vnpy.trader.database' (c:\vnstudio\lib\site-packages\vnpy\trader\database.py)