Oh… Let me look into it now.
Found the issue and fixed it. The cause is that you had X shares of Stock A in one portfolio and had -X shares of Stock A in another portfolio causing it to be 0 shares in the All portfolio leading to division by 0 which caused the error.
It is deliberate that you have such positions? Also, I see that you have many shortsell positions, is that deliberate?
Hi, thanks for the fix.
I am not holding any short sell positions at the moment, even though i did quite alot in the past. I believe is the part abt buying from Portfolio1 and selling from Portfolio2. I am using the portfolio function to differentiate my performance post 2018. That might not the intended purpose by your design, apologize for the inconvenience.