Phando / Streamdeck-Stonks

Streamdeck plugin stock ticker to watch your assets (market and crypto)
MIT License
25 stars 4 forks source link

Price Chart Is Incorrectly Colored #28

Closed turtle69-bot closed 1 year ago

turtle69-bot commented 1 year ago

Hi,

If the asset has a lower price than 1d ago, then all of their charts are colored red. This doesn't make sense when, for example, a 1m chart has an upward trend.

The opposite is also occurs if the asset has a higher price than 1d ago.

Please see the attached screenshots.

  1. The 1d price chart correctly filling red: https://imgur.com/a/vtrnVMl
  2. The 1m price chart incorrectly filling red: https://imgur.com/a/4bq6F1C
Phando commented 1 year ago

Thanks for using the plugin and finding this bug. The day charts were using the closing price instead of the opening price. Additionally when looking at shorter timeframes, the dataset was getting truncated prior to calculating the high and low. Everything should look good in the next release v1.1.9