Hi,
I'm closing a position in the morning and using context.portfolio.positions to detect if I'm in a position or not.
What I'm finding is that context.portfolio.positions still has a reference to a position at the close of day even though I closed it in the morning and so closing the position again. Is this normal? Shouldn't the position be live and contain the active positions?
Thanks.