askmike / gekko

A bitcoin trading bot written in node - https://gekko.wizb.it/
MIT License
10.08k stars 3.93k forks source link

Market Graph in market watcher in UI is inaccurate #2848

Closed federico-digital closed 5 years ago

federico-digital commented 5 years ago

[X ] bug report [ ] question about the decisions made in the repository

I notice a discrepancy between the price "Market Graph" in the live market watcher (gdax / 1 minute candles) and the close price returned by the running getCandle function in the background.

Trying to understand how the price line is plotted to the chart in order to debug this, any idea how the .svg chart data points are calculated from the candles data?

Anyone noticed the same?

federico-digital commented 5 years ago

After a deeper analysis of the data, it seems that the chart plots "open" prices, not "close", hence the discrepancy. Was this the intended behavior?

stale[bot] commented 5 years ago

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.