dr-mod / zero-btc-screen

Crypto stock price for RPi Zero
MIT License
310 stars 69 forks source link

zero-btc-screen -- Change Candle timeframe #34

Open brendanphall opened 1 year ago

brendanphall commented 1 year ago

Hi - Thank you for the awesome project!!

I'd like to set my candle timeframe for 1hr.

It looks like DATA_SLICE_DAYS = 1 is should be 1hr increments? Is this the correct?

gaorufeng commented 6 months ago

我使用简体中文回复你,附带谷歌翻译. 作者是根据每个屏幕的大小来决定显示多少K线的数量,然后 把获取到的数据的多少除以这个数量组成了k线图, 不是常规的15分钟 1小时K线图,我也琢磨了好久才明白. 比如3.7寸屏幕作者定义了显示45根k线.

I reply to you in Simplified Chinese, with Google translation attached. The author decides how many K-lines to display based on the size of each screen, and then divides the obtained data by this number to form a K-line chart, not the regular 15 It took me a long time to figure out the minute-1-hour K-line chart. For example, the author of the 3.7-inch screen has defined 45 K-lines to be displayed.