模拟策略前几天平稳运行,昨天几个出错


(yangziriver) #1

昨天5个出错,今天3个好了,还有两个出错。
这两个出错的类型都是一样的

/var/app/enabled/bigline/zipline/algorithm.py in run(self, data, overwrite_sim_params)
    865         try:
    866             perfs = []
--> 867             for perf in self.get_generator():
    868                 perfs.append(perf)
    869 

/var/app/enabled/bigline/zipline/gens/tradesimulation.py in transform(self)
    282                     #print('transform BEFORE_TRADING_START_BAR:{}'.format(dt))
    283                     algo.on_dt_changed(dt)
--> 284                     algo.before_trading_start(self.current_data)
    285                 elif action == MINUTE_END:
    286                     handle_benchmark(dt)

/var/app/enabled/bigline/zipline/algorithm.py in before_trading_start(self, data)
    546         with handle_non_market_minutes(data) if \
    547                 not Setting.is_daily else ExitStack():
--> 548             self._before_trading_start(self, data)
    549 
    550         self._in_before_trading_start = False

/var/app/enabled/biglearning/module2/modules/forward_test/v5/__init__.cpython-35m-x86_64-linux-gnu.so in biglearning.module2.modules.forward_test.v5.__init__.BigQuantModule.run.c_before_trading_start()

/var/app/enabled/biglearning/module2/modules/backtest/v7/__init__.cpython-35m-x86_64-linux-gnu.so in biglearning.module2.modules.backtest.v7.__init__.BigQuantModule.auto_cancel_non_tradable_orders()

/var/app/enabled/biglearning/module2/modules/backtest/v7/__init__.cpython-35m-x86_64-linux-gnu.so in biglearning.module2.modules.backtest.v7.__init__.BigQuantModule._auto_cancel_non_tradable_orders()

/var/app/enabled/biglearning/module2/modules/backtest/v7/__init__.cpython-35m-x86_64-linux-gnu.so in biglearning.module2.modules.backtest.v7.__init__.BigQuantModule._append_log()

UnboundLocalError: local variable 'log_content' referenced before assignment

(iQuant) #2

您可以将出错策略notebook_id私信我们一下,我们帮您重新运行。


(yangziriver) #3

现在出错已经消除了。两个是要重新运行一下。已经发QQ了。