Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Performance calculation on positive position #2895

Open
bastienjalbert opened this issue Jan 20, 2024 · 1 comment
Open

[BUG] Performance calculation on positive position #2895

bastienjalbert opened this issue Jan 20, 2024 · 1 comment

Comments

@bastienjalbert
Copy link

bastienjalbert commented Jan 20, 2024

Bug Description

I made an two orders on Bitcoin Future (kraken), related to a Long position that is closed. Since ghostfolio has no option to set order with leverage, I just put orders and their real size values.

After setting theses order, my performance is decreasing, even if the order is positive in termes of rentability

To Reproduce

  1. Create an history of orders, some with bitcoin (symbol id = 1f4de701-926e-416c-bfba-c7c041aa0213).
  2. Check for performance in Overview or Summary
  3. Add two orders as describe below (screenshots section). I did not check "update cash balance"
  4. Check the performance again, it's decreasing

Expected behavior

Excepted to get an increase in terms of performance.
As you can see below, quantity was close to 1. So we can estimate the (increase) performance to be close to (45142 - 44359) / 44359 ≈ 1.7%
Instead of an increase of this magnitude, my portfolio performance decrease by close to 10% ...

Screenshots

Before adding (2) orders :
image

After adding orders :
image

Added orders :
image

Logs

I can give full logs if needed

Environment

Docker

  • Ghostfolio Version, latest : 2.41.0
  • Self-hosted
  • Experimental Features disabled

Additional context

I think the history of other spot transaction in bitcoin can affect the calculation. But since the quantity sold and buy is 1==1 match, the results are strange.
I have 3 (positive return in total) positions which decreasing and decreasing my performance, so until the issue is solved and to not break my real performance, I put 6 orders in draft.

@bastienjalbert
Copy link
Author

@dtslvr Do you have any idea ? It should be easy to reproduce the bug with the information from the previous post

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant