tutorials-kr icon indicating copy to clipboard operation
tutorials-kr copied to clipboard

🇰🇷파이토치에서 제공하는 튜토리얼의 한국어 번역을 위한 저장소입니다. (Translate PyTorch tutorials in Korean🇰🇷)

Results 332 tutorials-kr issues
Sort by recently updated
recently updated
newest added

大佬,分时图是不是没有做缩放的功能啊?

现在交易所的 K 线图都很好,但是没发现好的封装的,大神可以封装一个

首先,谢谢开源大神。我的想法是依然用蜡烛图绘制分时图。我在你的基础上,增加了左边分界标题是否显示在边框内外切换。绘制蜡烛 或者 线 切换,就是这个分时图时,绘制下面的填充色没有头绪。

[{"avgPrice":10.0,"createTime":"2018-06-02 14:31:00","price":10.0,"volume":5.0},{"avgPrice":5.0,"createTime":"2018-06-02 14:40:00","price":5.0,"volume":5.0},{"avgPrice":15.0,"createTime":"2018-06-02 14:44:00","price":15.0,"volume":20.0},{"avgPrice":10.0,"createTime":"2018-06-02 14:47:00","price":10.0,"volume":5.0},{"avgPrice":10.0,"createTime":"2018-06-02 14:59:00","price":10.0,"volume":50.0},{"avgPrice":10.0,"createTime":"2018-06-02 15:00:00","price":10.0,"volume":50.0},{"avgPrice":10.0,"createTime":"2018-06-02 15:01:00","price":10.0,"volume":100.0},{"avgPrice":18.0,"createTime":"2018-06-02 15:35:00","price":18.0,"volume":28.0},{"avgPrice":11.0,"createTime":"2018-06-02 15:45:00","price":10.0,"volume":4.0},{"avgPrice":18.0,"createTime":"2018-06-02 15:53:00","price":18.0,"volume":5.0},{"avgPrice":25.0,"createTime":"2018-06-02 15:54:00","price":25.0,"volume":3.0},{"avgPrice":10.0,"createTime":"2018-06-02 17:19:00","price":10.0,"volume":7.0},{"avgPrice":10.0,"createTime":"2018-06-02 17:21:00","price":10.0,"volume":28.0},{"avgPrice":12.0,"createTime":"2018-06-02 17:22:00","price":12.0,"volume":5.0},{"avgPrice":10.0,"createTime":"2018-06-02 17:50:00","price":10.0,"volume":38.0},{"avgPrice":6.4286,"createTime":"2018-06-02 17:56:00","price":10.0,"volume":7.0},{"avgPrice":10.0,"createTime":"2018-06-02 17:57:00","price":10.0,"volume":8.0},{"avgPrice":10.0,"createTime":"2018-06-02 19:53:00","price":10.0,"volume":5.0},{"avgPrice":10.0,"createTime":"2018-06-02 19:55:00","price":10.0,"volume":2.0},{"avgPrice":10.0,"createTime":"2018-06-02 20:03:00","price":10.0,"volume":2.0},{"avgPrice":10.0,"createTime":"2018-06-02 21:16:00","price":10.0,"volume":5.0},{"avgPrice":10.0,"createTime":"2018-06-02 21:47:00","price":10.0,"volume":5.0}] 如上Json数据,分时图无法显示出来,请问是什么原因?

**为了测试 只留下assert目录中ibm.json的一条数据** ## **数据量少的时候无法绘制** ![tim 20180525120923](https://user-images.githubusercontent.com/17821274/40525756-9eb8d218-6014-11e8-9ad7-717ee148dcb6.png) ![tim 20180525120932](https://user-images.githubusercontent.com/17821274/40525757-9ee8fbaa-6014-11e8-8aec-ceedc65780b8.png) ## **rsi图出现NaN的问题导致图无法绘制,此时K线图是正常的** ![tim 20180525121221](https://user-images.githubusercontent.com/17821274/40525812-102ab0b0-6015-11e8-896d-e6b47529f623.png) 出现问题的K线图数据如下 [点击打开链接](https://paste.ubuntu.com/p/nrJsZtWBps/)

对于MA30 计算方法应该是: ` if(datas.size()-i>=30){ float temp=0; for(int index=i;index