vnpy/vn.trader/ctaAlgo/ctaSetting.py

20 lines
697 B
Python
Raw Normal View History

2016-07-02 03:12:44 +00:00
# encoding: UTF-8
'''
在本文件中引入所有希望在系统中使用的策略类
这个字典中保存了需要运行的策略的名称和策略类的映射关系
用户的策略类写好后先在该文件中引入并设置好名称然后
在CTA_setting.json中写入具体每个策略对象的类和合约设置
'''
from ctaTemplate import DataRecorder
from ctaDemo import DoubleEmaDemo
2016-07-03 16:59:48 +00:00
from strategy22_ArbitrageGrid import Strategy22
2016-10-10 16:50:47 +00:00
from strategy24_M15RB import Strategy24
2016-07-02 03:12:44 +00:00
STRATEGY_CLASS = {}
STRATEGY_CLASS['DataRecorder'] = DataRecorder
2016-07-03 16:59:48 +00:00
STRATEGY_CLASS['DoubleEmaDemo'] = DoubleEmaDemo
2016-10-10 16:50:47 +00:00
STRATEGY_CLASS['Strategy22'] = Strategy22
STRATEGY_CLASS['Strategy24'] = Strategy24