Giter VIP home page Giter VIP logo

czsc's Introduction

czsc - 缠中说禅技术分析工具

源于缠中说缠博客,欢迎加群探讨, QQ群:1125818657,加群请备注自己对缠论的了解程度,谢谢。

考虑到我自己对缠论的理解还在“四不像”水平,czsc 这个库只有参考的价值。画画笔和线段也还行,但这个离缠论分析还很远

问题讨论

issues 中提出了一些值得探讨的实战问题,欢迎积极参与讨论,我可以负责实现一些好的想法,代码开源。

原文整理

注意: 如果CSDN的连接打不开,可以直接在 czsc/docs 目录下查看 html 文件

安装

直接从github安装:

pip install git+git://github.com/sohunjug/czsc.git -U

pypi安装:

pip install czsc -U -i https://pypi.python.org/simple

K线数据样例

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

         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 中;

使用 Tushare Pro / 聚宽 / 掘金 / 天勤 的数据进行缠中说禅技术分析结果展示: https://github.com/zengbin93/czsc_web_ui

examples

结合 tushare.pro 的数据使用

py 文件地址: examples/combine_with_tushare.py

没有 token,到 https://tushare.pro/register?reg=7 注册下

结合聚宽的数据使用

py 文件地址: examples/use_czsc_with_jq.py

czsc's People

Contributors

zengbin93 avatar sohunjug avatar ibaihuo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.