Check Portfolio Value Before Trading
Z last edited by
I would like to be able to store my portfolio value in a variable before I make any trades on a given day. I know how to do this for the whole of the Cerebro run period, but not how to do it in the middle of a run. Basically I want to track the returns for a month. So, on January 1st 1999 I want to check my portfolio value BEFORE trading... then on January 29th 1999 (last day of January) I want to check my portfolio value AFTER trading.
I can definitely just use the After-Trading value of the previous day, and I will if need be. I'm just curious if there's a way to do it in the way I described.