For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
missing definition for 'startingcash' in BrokerBase?
-
[minor bug report @backtrader]
I came across a broker property 'startingcash' that doesn't have a declaration in BrokerBase.from strategy.py:
# Internal Value Analyzer ainfo.Value.Begin = self.broker.startingcash
-
BrokerBase
is a base class with no practical/real use. It cannot be used, because it will actually raiseNotImplementedError
exceptions. -
I'm currently working on creating a custom Broker
and the Backtrader code in strategy.py use a hard coded property that is used in BackBroker.
if it is on the main code then it should be on the BrokerBase so everyone know that it need to be implemented