Broker and fundmode
with the latest version when using oanda broker, it breaks with follwing code:
File "/usr/local/lib/python2.7/dist-packages/backtrader/observers/broker.py", line 100, in start
self._fundmode = self._owner.broker.fundmode
AttributeError: 'OandaBroker' object has no attribute 'fundmode'
does anyone know, how to fix this?
latest(would be good to quote the actual version) keeps on adding auto-detection of
fundmodefor things to switch the presentation/results.
That particular observer was touched and the error shows that a couple of corners in adding some abstraction for
fundmodecould be there.
Since you are using
Oandalet's assume you don't want to plot. Run with:
If you are using
Oandafor some backtesting (rather than live trading) and need plotting, you can re-add observers as needed (or else revert to
It will be fixed in the
@backtrader i tried 18.104.22.168 and 22.214.171.124, reverting to a version prior to the funds functionality works.
Also using stdstats=False works.
Thanks a lot for your help and this great software.
Corrected in the development branch by having default no-op methods in the broker abstraction