Skip to content

Commit

Permalink
waditu#52 0.7.3 update example
Browse files Browse the repository at this point in the history
  • Loading branch information
zengbin93 committed Jul 13, 2021
1 parent 170e0f1 commit 35f9ae9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 25 deletions.
34 changes: 10 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@
>源于[缠中说缠博客](http://blog.sina.com.cn/chzhshch),欢迎加群探讨,
>QQ群:`1125818657`,加群请备注自己对缠论的了解程度,谢谢。
>**[官方文档(0.6.7](https://blog.csdn.net/baidu_25764509/article/details/110389764)**
>**[官方文档(0.6.8)(未更新到0.7.3](https://blog.csdn.net/baidu_25764509/article/details/110389764)**
## 使用前必看

* 这是个人开发的项目,虽然我已经尽可能的避坑,但可以很直接的说,这里面一定还有坑,使用前请仔细校验分析结果,发现新坑请告诉我,我来填;
* 目前开发完成度不高,API可能会有比较大的变动,暂时不准备写文档,没有能力看懂源码的,不建议现在使用。
* 免责声明:项目开源仅用于技术交流!
* 版本号说明:从0.7.X开始,以`a`结尾表示未经社区code review的预发布版本

## 项目贡献

* 缠论的 `分型、笔` 的自动识别,详见 `czsc/analyze.py`
* 定义并实现 `信号-因子-事件-交易` 量化交易逻辑体系,详见 `czsc/objects.py`
* 定义并实现了若干种基于笔的信号,详见 `czsc/signals.py`

## 问题讨论

Expand Down Expand Up @@ -51,34 +56,15 @@ pip install git+git://github.com/zengbin93/czsc.git -U
pip install czsc -U -i https://pypi.python.org/simple
```

## K线数据样例

`dt` 的格式统一为 `%Y-%m-%d %H:%M:%S`,如 `2020-02-27 00:00:00`

```markdown
symbol dt open close high low vol
0 300803.SZ 2020-01-17 09:31:00 44.08 44.19 44.30 44.01 170160
1 300803.SZ 2020-01-17 09:32:00 44.06 44.24 44.24 43.93 91100
2 300803.SZ 2020-01-17 09:33:00 44.10 43.91 44.17 43.91 90251
3 300803.SZ 2020-01-17 09:34:00 43.90 43.86 43.90 43.81 61100
4 300803.SZ 2020-01-17 09:35:00 43.86 43.66 43.86 43.61 75900
5 300803.SZ 2020-01-17 09:36:00 43.66 43.80 43.86 43.66 56600
6 300803.SZ 2020-01-17 09:37:00 43.81 43.67 43.82 43.67 68600
7 300803.SZ 2020-01-17 09:38:00 43.67 43.60 43.67 43.53 97554
8 300803.SZ 2020-01-17 09:39:00 43.60 43.62 43.70 43.57 118861
```

* dt 表示 该周期的交易结束时间


## 使用方法

目前已经实现了缠论的 笔、线段、中枢 的自动识别,核心代码在 `czsc.analyze` 中;
目前已经实现了缠论的 `分型、笔` 的自动识别,核心代码在 `czsc.analyze` 中;

使用聚宽数据的快速入门请查看 `examples\czsc 快速入门教程.ipynb`
使用聚宽数据的快速入门请查看 `examples\czsc_quick_start.py`

## 捐赠支持

>如果这个项目对你的交易有些许帮助,可以扫码捐赠,让我知道一下,感谢!另外,**可以顺便提一个问题或需求。**
<img src="https://github.com/zengbin93/czsc/blob/master/docs/donate.png" height="220" width="400">

2 changes: 1 addition & 1 deletion examples/czsc_quick_start.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8
"""
目前 czsc 库处于开发阶段,不同版本之间的 API 兼容性较差。
这个文件对应的 czsc 版本为 0.7.2,代码即文档,关于0.7.2的所有你想知道的都在代码里
这个文件对应的 czsc 版本为 0.7.3,代码即文档,关于0.7.3的所有你想知道的都在代码里
注意:czsc 是针对程序化实盘进行设计的,用来做研究需要自己按需求改动代码,强烈建议研究、实盘使用统一的代码。
"""
Expand Down

0 comments on commit 35f9ae9

Please sign in to comment.