增加回测用的jupyter notebook,修改strategy下的策略载入使用绝对路径
This commit is contained in:
parent
38caf8bf62
commit
415573642b
File diff suppressed because one or more lines are too long
@ -20,7 +20,7 @@ for root, subdirs, files in os.walk(path):
|
||||
# 只有文件名中包含strategy且非.pyc的文件,才是策略文件
|
||||
if 'strategy' in name and '.pyc' not in name:
|
||||
# 模块名称需要上前缀
|
||||
moduleName = 'ctaStrategy.strategy.' + name.replace('.py', '')
|
||||
moduleName = 'vnpy.trader.ctaStrategy.strategy.' + name.replace('.py', '')
|
||||
|
||||
# 使用importlib动态载入模块
|
||||
try:
|
||||
|
201
vnpy/trader/ctaStrategy/strategy/backtesting.ipynb
Normal file
201
vnpy/trader/ctaStrategy/strategy/backtesting.ipynb
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user