I'm a newbie in backtrader, but platform looks very powerful and I'd like to use it for backtesting as well as live trading with IB.
I want to run a strategy which opens trades based on external signals daily and holds it up to 5 days depending on further signals. Trades on the same instrument can be opened daily and should be managed separately.
Essentially for live trading I'd like to persist my trades and orders into some database and be able load them back into backtrader on system start in case of restarts or failures or just after a weekend. It seems persistence is not a feature of the platform yet.
It seems one solution could be is to push trades and orders updates to database during
notify_trade and make strategy logic to work with database trades/orders data. This might be easier to implement but it would be difficult to make it work out of the box for both live trading and backtesting.
Are there any other ideas on how to implement trades/orders persistence?