Skip to content

Commit

Permalink
doc: update quickguide
Browse files Browse the repository at this point in the history
  • Loading branch information
Vespa314 committed Mar 8, 2024
1 parent aae5854 commit 6b019a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions quick_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- [为啥信号会消失](#为啥信号会消失)
- [画图为啥不能交互](#画图为啥不能交互)
- [CChan类序列化/deepcopy时报递归溢出](#cchan类序列化deepcopy时报递归溢出)
- [报k线时间相关错误](#报k线时间相关错误)
- [其他问题](#其他问题)
- [不可绕过的步骤](#不可绕过的步骤)
- [CChanConfig重点关注配置](#cchanconfig重点关注配置)
Expand Down Expand Up @@ -169,6 +170,13 @@ is_sure=False在画图结果中表现为虚线(虚笔,虚段,虚线中枢
sys.setrecursionlimit(0x100000)
```

### 报k线时间相关错误
常见报错类似:`kline time err, cur=2024/01/01 00:05, last=2024/01/01`

处理方法:如果数据级别为天级别以下(不包含天级别),且K线时间可能出现0点0分数据,那么在数据源类中返回的K线时间CTime中,把auto设置为False即可;

根本原因:一般日线K的时间都不包含小时信息,或者为0点0分,为了处理天级别+分钟级别K线时间对齐问题,auto 设置为 True(这是默认设置)则会自动将天的小时分钟信息设置为23:59,从而保证当天的分钟线为对应日期的次级别K线;但是对于数字货币类的分钟K线,如果也出现0点0分,则会有误判;

### 其他问题
如需作者排查,尽量提供可以直接运行的主函数文件和数据文件;

Expand Down

0 comments on commit 6b019a9

Please sign in to comment.