qka
A-share quantitative backtesting, indicators, and strategy analysis
All Skills in This Repository (1)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install QKA?โผ
Run `npx skills add zsrl/qka --all -g -y` in your terminal to install the skill globally for your coding assistant.
What is QKA used for?โผ
QKA is a Python framework for backtesting quantitative trading strategies on Chinese A-share stocks, with built-in data loading, indicators, position sizing, and performance metrics.
How do I backtest a trading strategy with QKA?โผ
Define a Strategy class with an on_bar method, load data with qka.Data, then call Backtest.run() with your starting cash and date range to get returns, Sharpe ratio, and drawdown metrics.
Which data sources does QKA support?โผ
QKA supports baostock by default, plus akshare and QMT, and can precompute all 60+ indicators from the ta library automatically.
Does QKA work with Claude Code and Cursor?โผ
Yes. Once installed, the skill loads the full QKA API reference so your coding assistant can generate correct strategy and backtest code from plain-English requests.
Related Repositories in Finance & Accounting
View All in Finance & Accountingโccxt
Trade and pull market data from 100+ crypto exchanges
financial-services
AI agents for banking, research, fund admin, and wealth workflows
financial-services-plugins
AI agents for banking, research, fund admin, and wealth workflows