Overview of chan.py Functional Levels
mainThe chan.py framework is designed to be used at four different levels of depth:
- Basic Chan Theory Element Calculation: Computing fractals, strokes (笔), segments (线段), central pivots (中枢), and buy/sell points. Supports multi-level calculations, indicator configuration (MACD, Moving Averages, Bollinger Bands, Demark, etc.), and multiple data sources (futu, akshare, baostock, or local files).
- Strategy Buy/Sell Point Development: Calculating morphological buy/sell points and supporting custom dynamic buy/sell point strategies, including divergence (背驰) algorithm configuration.
- Machine Learning Integration: Scoring buy/sell points using ML models. The framework provides 500+ default features and includes interfaces for data ingestion, model training, prediction, and model I/O. Supported models include XGB, LightGBM, and MLP. It also includes an AutoML hyperparameter search engine.
- Live Trading: Ensuring consistency between online and offline models/features. Supports integration with the Futu trading engine (simulated and real accounts) for opening/closing positions and real-time price tracking. Supports MySQL and SQLite backends.