czsc-core 1.0.0

Core analyzer of the czsc framework (most users should depend on the `czsc` facade instead): fractal (FX), stroke (BI), pivot (ZS), CZSC analyzer.
docs.rs failed to build czsc-core-1.0.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

czsc-core

💡 大多数用户应优先使用 facade crate czsccargo add czsc 一行拿到全部公共 API,本 crate 中的核心类型已在 facade 顶层 re-export。仅当你只想要缠论核心算法、不需要工具/信号/trader 时 才单独依赖本 crate。

缠论(CZSC,缠中说禅技术分析理论)核心数据结构与算法的 Rust 实现。

提供分型(FX)、笔(BI)、中枢(ZS)、CZSC 分析器等核心类型,以及 K 线 包含关系处理(remove_include)、笔识别(check_bi)等基础算法。

用法

[dependencies]
czsc-core = "1.0"
use czsc_core::objects::{RawBar, Freq};
use czsc_core::analyze::CZSC;

let bars: Vec<RawBar> = /* ... */;
let czsc = CZSC::new(bars, 50);
println!("最新一笔方向: {:?}", czsc.bi_list.last().map(|b| b.direction));

特性

  • python:启用 PyO3 binding,供 czsc-python crate 聚合到 czsc._native 扩展。

项目主页