difference between getvalue() and getcash()
I did backtest on one stock and I logged getvalue() and getcash() of the first trade in backtrader. It is a buy order, but the logged values for getvalue() and getcash() are the same. What happened?
Thanks in advance
I made a mistake and put cerebro.broker.setcommission(margin=.1). I think this was the reason.