chanlun

Detect fractals, segments, and centers in OHLCV data using czsc.

Updated Jun 30, 2026
One-click install
npx skills add https://github.com/20YN04/vibe-trading-macos --skill chanlun-20yn04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chanlun
Source: https://github.com/20YN04/vibe-trading-macos/tree/main/agent/src/skills/chanlun
Command: npx skills add https://github.com/20YN04/vibe-trading-macos --skill chanlun-20yn04

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires czsc, requests, pandas, and includes references (resource) components.

What problem does it solve?

This skill addresses the complexity of manual technical analysis by automating the identification of price structures, trends, and reversal points based on the Chan Theory (缠论).

Core Features & Use Cases

  • Automated Pattern Recognition: Detects fractals, segments (BI), and centers (ZS) automatically from OHLCV market data.
  • Buy/Sell Signal Generation: Identifies first, second, and third-class buy/sell points to assist in trading decisions.
  • Use Case: A trader can use this to scan historical BTC-USDT data to identify potential trend reversals or continuation signals without manually plotting charts.

Quick Start

Use the chanlun skill to analyze the provided market data and generate buy or sell signals based on the latest price action.

Frequently Asked Questions about chanlun

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Chan Theory technical analysis for crypto and stock market data?

To automate Chan Theory technical analysis, you process OHLCV market data to automatically detect price structures like fractals, segments (BI), and centers (ZS) using the czsc library. This enables deterministic pattern recognition across multiple timeframes for stocks, crypto, and futures.

What trading signals can I generate using Chan Theory pattern recognition?

Chan Theory pattern recognition generates first, second, and third-class buy and sell points based on price structures. These signals help identify potential trend reversals or continuation patterns directly from historical OHLCV data without manual chart plotting.

Can I use the czsc library for quantitative finance analysis on historical OHLCV data?

Yes, you can use the czsc library for quantitative finance analysis by feeding historical OHLCV data into the Chan Theory methodology. It calculates deterministic price structures and market signals suitable for analyzing financial markets across multiple timeframes.

What market data format is needed to detect Chan Theory segments and centers?

You need OHLCV market data to detect Chan Theory segments and centers. The analysis requires Open, High, Low, Close, and Volume data points to accurately identify fractals, calculate segments (BI), and establish centers (ZS) for signal generation.

Does automated Chan Theory analysis work for multiple timeframes in trading?

Automated Chan Theory analysis works for multiple timeframes in trading by applying consistent pattern detection rules to OHLCV data across different intervals. This allows traders to scan historical market data for buy and sell points regardless of the specific timeframe.

Why use automated Chan Theory instead of manual technical analysis?

Automated Chan Theory eliminates the complexity of manual technical analysis by programmatically identifying fractals, segments, and centers. This deterministic approach ensures consistent pattern detection and signal generation, removing human error from chart analysis.