-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Conversation
Hey! Apologies for the delay. I love this PR, few things:
|
I propose to talk about future features on the forum and actuall implementation details here. As such I first like to talk on the forum post you created for this topic. |
This PR as it is now can be merged into the develop branch, so others can benefit from this, have a look and improve it further. I'll say more about this on the forum https://forum.gekko.wizb.it/thread-56679.html . For now this is just first version that works and can do something useful, which I'd like to share for the benefit of others. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you feel this is very a important issue please reach out the maintainer of this project directly via e-mail: gekko at mvr dot me. |
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
![gekkopnl](https://user-images.githubusercontent.com/5678428/40268573-6cb642b2-5b70-11e8-98d0-af9e891d427c.png)
This pull request adds a new tab to the Gekko UI for PnL reporting. Details in this issue Improved PnL reporting #2028
The PnL page looks like this:
What is the new behavior (if this is a feature change)?
Backend code fetches all (new) trades from the exchange and stores them in sqlite database.
In the UI, all new trades since the last sync with the exchange are shown.
For each buy trade it shows how much your current position and average open price changed.
For each sell trade it shows how much was gained (take profit) or lost (stop loss).
Below the trade level breakdown is an overview of all positions for all traded currency pairs. For each it is shown how much is invested at what average opening price and how much the PnL is, in term currency and relative as percentage.