Problem with “realized capital gains”

image

As you can see in the images, I have several IONQ purchases. All below €66.97. Yesterday I bought 54 shares and today I sold them. As you can see, the result is positive with a profit of over €100, but today it shows that I have lost more than €200. Can anyone tell me why?

No you don’t sold exactly the 54. PP is working with the FIFO principle (first in first out). So you closed first the 4 open positions (22 shares) and 32 shares of the transaction from the 13. October..

Where do you get this information from?

in the performance section. I have a widget that tells me how much I have earned that day, both in open and closed positions, and in closed positions it tells me that I have lost money. Even though the ones I bought first have been sold, I shouldn’t be showing a loss because I bought at a lower price.

Not 100% sure if I got you right, but I think you miss the period you’re looking at. In the header you see, that you’re analyzing the values with the start values from the 13 of October. I guess you buy transactions are older than that, then you have to adopt the period to include the transactiondl days. Otherwise you get hurt the performance isolated for the last day.

Correct! Not knowing that he was selling what he had bought in order, I hadn’t taken it into account in the time period I had selected. Is there any way to tell PP that what I wanted to sell were the last 54 shares? In the end, that last transaction was a kind of trading, and I’m interested in doing it that way. Thank you.

No, the only work around is to do it on another account.

Okay, thank you for your time.

How about editing the xml file (or alternatively use GitHub - pfalcon/ppxml2db: Scripts to import PortfolioPerformance (https://github.com/portfolio-performance/portfolio) XML into an SQLite DB and export back and edit the sqlite file)?