vnpy/vn.trader/ctaStrategies.py

30 lines
963 B
Python
Raw Normal View History

2015-10-19 08:42:17 +00:00
# encoding: UTF-8
'''
在本文件中引入所有希望在系统中使用的策略类
这个字典中保存了需要运行的策略的名称和策略类的映射关系
用户的策略类写好后先在该文件中引入并设置好名称然后
在CTA_setting.json中写入具体每个策略对象的类和合约设置
2015-10-19 08:42:17 +00:00
'''
from ctaStrategyTemplate import TestStrategy
from ctaDataRecorder import DataRecorder
2016-02-14 05:03:41 +00:00
from ctaStrategy02 import Strategy02
from ctaStrategy03 import Strategy03
from ctaStrategy04 import Strategy04
from ctaStrategy05 import Strategy05
from ctaStrategy06 import Strategy06
strategyClassDict = {}
2016-02-14 05:03:41 +00:00
#strategyClassDict['TestStrategy'] = TestStrategy
#strategyClassDict['DataRecorder'] = DataRecorder
strategyClassDict['Strategy02'] = Strategy02
strategyClassDict['Strategy03'] = Strategy03
strategyClassDict['Strategy04'] = Strategy04
strategyClassDict['Strategy05'] = Strategy05
strategyClassDict['Strategy06'] = Strategy06