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