For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
add_signal and addstrategy cannot run at the same time
-
Hi
I am new in Backtrader / Python.
I would like to add_signal and addstrategy at the same time, however it prompt error when run both, but it is fine when run either one.cerebro.add_signal(MAINSIGNALS['longshort'], SMACloseSignal)
cerebro.addstrategy(SmaCross)Error:
signalst, sargs, skwargs = self.strats.pop(0)
ValueError: not enough values to unpack (expected 3, got 1)Is it add_signal and addstrategy can not put together?
Thanks.