How fasiondog/hikyuu works
Hikyuu is a C++/Python quantitative-trading research framework. The documented user workflow is to import A-share market data, load it into the framework, compose indicators and trading-system parts, run a backtest, and inspect the results. Its major supporting capabilities include multiple storage backends, data-fetching/import tools, analysis, plotting, and extensible strategy components. The README establishes the user workflow; source excerpts and index references support only selected internal links, so uncertain connections are omitted.
Main entry points: strategy Trading systems · pytdx_to_clickhouse.py Data importers · StockManager.cpp Stock data · __init__.py Python API
Components 15
Market data
- Data importers
hikyuu/data/pytdx_to_clickhouse.py - Market fetchers
hikyuu/fetcher/stock - Data configuration
hikyuu/data/hku_config_template.py - Market storage
hikyuu_cpp/hikyuu/data_driver
Quant engine
- Stock data
hikyuu_cpp/hikyuu/StockManager.cpp - Indicators
hikyuu_cpp/hikyuu/indicator - Trading systems
hikyuu/strategy - Trade manager
hikyuu_cpp/hikyuu/trade_manage/TradeManager.cpp
Research tools
- Backtest analysis
hikyuu/analysis/analysis.py - Result plotting
hikyuu/draw/drawplot/matplotlib_draw.py
User interfaces
- GUI import
hikyuu/gui/HikyuuTDX.py - CLI import
hikyuu/data/common.py - Python API
hikyuu/__init__.py - Interactive tools
hikyuu/interactive.py
Other components
- Researcher
Connections 15
- Researcher → GUI import: imports data
- Researcher → CLI import: imports data
- GUI import → Data importers: starts import
hikyuu/gui/HikyuuTDX.py - Data importers → Market storage: writes market data
- Market fetchers → Data importers: provides market data
- Python API → Data configuration: loads defaults
hikyuu/__init__.py - Python API → Stock data: initializes core
- Stock data → Market storage: loads through drivers
hikyuu_cpp/hikyuu/StockManager.cpp - Researcher → Interactive tools: runs backtest
- Interactive tools → Trading systems: composes system
- Trading systems → Indicators: uses signals
- Trading systems → Trade manager: runs trades
- Researcher → Stock data: selects market data
- Researcher → Backtest analysis: reviews results
- Researcher → Result plotting: views charts