kam dorra last edited by
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?
getpositionmethod relies always on the information provided by the broker instance. It's in the broker code.