freqtrade/frequi

"Cumulative Profit" graph doesn't show all bots' data consistently

VanessaE opened this issue · 1 comments

Describe the bug

This bug report comes from @Mandark-droid; the images below are his, not mine.

If the user has more than one bot running, the "Cumulative profit" graph may sometimes only plot the data from one of those bots, rather than all of them consistently, but which bot it picks seems to be random.

Here are three screenshots of the graph taken during the same session, refreshing the page each time:

241429372-cc806ee7-1c38-4337-bc5e-f3889c828e76
241429363-98707c74-9d47-4aac-a2a0-21086a4f96a2
241429350-e335b6fb-a24b-49b6-a80e-f9edaf6bde50

Since this is random and inconsistent, it doesn't seem logical to include a "steps to reproduce" section. I guess just try running two or more bots for a while? 😃

for performance reasons, this chart is throttled to refresh only once per minute.
Without that, it'd refresh/redraw every 5 seconds if there's open trades (the frequency that open trades are updated).

If you change the bot comparison selection (or reload the page) - you'll therefore need to wait for up to 1 minute for the graph to be uptodate.
you can force this refresh by going to a different page within the bot (logs/trade/...) - and then returning to the dashboard.

I've tried to improve behavior in this by not throttling the closed trades - but i suspect it can still be flaky if you have one bot without closed trade in your bot list, while trying to change the selection of "bots to show".