For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
position tracking
-
When BackTrader is connected to a broker api (https://github.com/ftomassetti/backtrader-oandav20),
does BackTrader keep track of existing positions locally/internally, or does it retrieve that data from the broker api?
Can the user choose which option?Thanks.
-
The strategy
getposition
method relies always on the information provided by the broker instance. It's in the broker code.