portfolio-performance / portfolio

Track and evaluate the performance of your investment portfolio across stocks, cryptocurrencies, and other assets.
http://www.portfolio-performance.info
Eclipse Public License 1.0
2.83k stars 585 forks source link

TRI is NaN% #3828

Open amoutiers opened 5 months ago

amoutiers commented 5 months ago

Describe the bug TRI is displayed as NaN% is some cases. It seems to be correlated with the detention period (if < 4 days)

To Reproduce See the attached file. bourse.xml.zip

Expected behavior The right calculation

Screenshots Capture d’écran 2024-03-08 à 08 24 49

Desktop (please complete the following information):

Sn1kk3r5 commented 5 months ago

HI,

this is a known behavior. PP is not made for day trading but Buy and Hold. You'll find some examples in the forum, e.g. https://forum.portfolio-performance.info/t/making-sense-of-trades/21179

Cheers