vnpy/vn.trader/ctaAlgo/ctaSetting.py

26 lines
973 B
Python
Raw Normal View History

2016-07-02 03:12:44 +00:00
# encoding: UTF-8
'''
在本文件中引入所有希望在系统中使用的策略类
这个字典中保存了需要运行的策略的名称和策略类的映射关系
用户的策略类写好后先在该文件中引入并设置好名称然后
在CTA_setting.json中写入具体每个策略对象的类和合约设置
'''
2016-11-30 06:26:08 +00:00
#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-11-30 06:26:08 +00:00
from strategy25_NonStdArbitrageGrid import Strategy25
2017-04-01 04:24:52 +00:00
from strategy26_ArbitrageM1 import Strategy26
from strategy27_MultiPeriod import Strategy27
2016-07-02 03:12:44 +00:00
STRATEGY_CLASS = {}
2016-11-30 06:26:08 +00:00
#STRATEGY_CLASS['DataRecorder'] = DataRecorder
#STRATEGY_CLASS['DoubleEmaDemo'] = DoubleEmaDemo
2016-10-10 16:50:47 +00:00
STRATEGY_CLASS['Strategy22'] = Strategy22
2016-11-30 06:26:08 +00:00
STRATEGY_CLASS['Strategy24'] = Strategy24
2017-04-01 04:24:52 +00:00
STRATEGY_CLASS['Strategy25'] = Strategy25
STRATEGY_CLASS['Strategy26'] = Strategy26
STRATEGY_CLASS['Strategy27'] = Strategy27