Incorrect amount of shares

Dear users,

Since version 0.45 the behaviour of transactions changed. When you create a sell transaction first, followed by a buy transaction for the same amount of shares. It will not count up to net zero. This is very strange behaviour and has been changed since version 0.45.

I know the program doesn’t support short selling. But such a simple thing should be handled correctly by the program, as it did a while ago. I added two screenshots to show the differences.

V0.78:

V.044.1 with desired behaviour :grinning_face: :

It is very sad that PP became not useful for me since version 0.45, as I love the program. Please implement the old behaviour again.

Are both transactions exactly zero or is there tiny difference in the decimal digits?

I recall that there was a similar issue here recently an it could be that it is being taken care of, this may fall in the same problem.

There is no difference ofcourse, someone any update on this bug? Please restore the correct behavior as in version 0.44.

your reporting period shows being “1 year”, your sell and buy transactions seem to be 1 year and 1 day apart.

1 Like

Of course that is not the case, that’s just the viewing period. The transactions are on the same day or within weeks. I’ve attached both project files with the different behavior for the same trade between v0.43 and 0.80, so you can observe it yourself.

V0.80 (incorrect amount of shares after a sell-buy trade):

Portfolio_Performance_Files_v0.43_0.80.zip (17,8 KB)

V0.43 (correct amount of shares after a sell-buy trade):

1 Like

Here both files show the same results, I am using PP 0.80.2.

Indeed, the amount of shares shows 10 and should be 0. Maybe @AndreasB can comment on that.

1 Like

You both are selling 10 shares on 10/04/2025 at 10:00

Than you are bying back 10 shares one hour later (11.00).

Does that make sense?

Maybe the sell-order is ignored by any reason (no stocks to share in the deposit?)

Then you buy back → 10shares are listed.

Stefan

Hey Stefan,

I think that order of transactions is intended by Wietse-0803. I think it has something to do with shortselling or options.

Interestingly older versions of PP did seem to handle it correctly no matter what was the first transaction.

Exactly Harry, indeed. I know PP is not designed for short selling, however as you also mentioned this aspect is irrelevant because the behavior is changed without reason (as far as I know). Moreover, it’s simply incorrect.


I assume the changed behavior can caused in the marked changes. Only @AndreasB know it exactly.

Well, the support for short sales is - let’s say - patchy. In this view, the sale of 10 shares cannot be matched. And then only the purchase of 10 shares shows up. There are proposals to improve this similar to the “trades” which by now is able to also match a sale to a purchase. But it is not implemented yet - it is not trivial

Hi @AndreasB , thanks for your response. I hope it will be possible soon, because in older PP versions this worked seamless. As a result I stopped using PP since this version (found also no alternative). Would be nice to match these trades manually for example.