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.