diff --git a/vn.trader/ctaAlgo/ctaTemplate.py b/vn.trader/ctaAlgo/ctaTemplate.py index c4240122..943d357e 100644 --- a/vn.trader/ctaAlgo/ctaTemplate.py +++ b/vn.trader/ctaAlgo/ctaTemplate.py @@ -229,6 +229,11 @@ class CtaTemplate(object): """保持bar数据""" pass + def onTimer(self): + """定时执行任务 + 由mainEngine驱动""" + pass + # ---------------------------------------------------------------------- def setParam(self, setting): """设置参数"""