2015-10-19 08:42:17 +00:00
|
|
|
|
# encoding: UTF-8
|
|
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
在本文件中引入所有希望在系统中使用的策略类
|
2015-11-20 06:11:29 +00:00
|
|
|
|
|
2015-11-20 07:50:57 +00:00
|
|
|
|
|
2015-11-20 06:11:29 +00:00
|
|
|
|
这个字典中保存了需要运行的策略的名称和策略类的映射关系,
|
|
|
|
|
用户的策略类写好后,先在该文件中引入,并设置好名称,然后
|
|
|
|
|
在CTA_setting.json中写入具体每个策略对象的类和合约设置。
|
2015-11-20 07:50:57 +00:00
|
|
|
|
|
2015-10-19 08:42:17 +00:00
|
|
|
|
'''
|
|
|
|
|
|
2015-10-16 08:50:44 +00:00
|
|
|
|
from ctaStrategyTemplate import TestStrategy
|
2015-11-20 06:11:29 +00:00
|
|
|
|
from ctaDataRecorder import DataRecorder
|
2015-10-16 08:50:44 +00:00
|
|
|
|
|
|
|
|
|
strategyClassDict = {}
|
2015-11-20 07:50:57 +00:00
|
|
|
|
|
2015-11-20 06:11:29 +00:00
|
|
|
|
strategyClassDict['TestStrategy'] = TestStrategy
|
2015-11-20 07:50:57 +00:00
|
|
|
|
strategyClassDict['DataRecorder'] = DataRecorder
|