Hi,

When running my algo I decided to keep track of my cash position, and it seems like Portfolio.Cash would only decrease (even below 0) with each iteration of rebalancing of my portfolio. I thought it might be because there was cash left unsettled but it Portfolio.UnsettledCash always returns 0, so I don't think that's the case.

I do not face issues with orders not going through due to insufficient funds, so I'm not quite sure what's the problem here, or if I am misunderstanding how Portfolio.Cash works. I have attached a backtest to this thread. I tracked the state of my cash position in the logs. I would be really grateful if anyone could dispel this mystery :p Thanks!