vnpy/vn.strategy/strategydemo/demoStrategy.py

18 lines
480 B
Python
Raw Normal View History

# encoding: UTF-8
from strategyEngine import StrategyTemplate
########################################################################
class SimpleEmaStrategy(StrategyTemplate):
"""简单双指数移动均线策略"""
#----------------------------------------------------------------------
def __init__(self, name, symbol, engine):
"""Constructor"""
super(SimpleEmaStrategy, self).__init__(name, symbol, engine)