A-share backtesting
where every cent counts.
EasyQuant is an event-driven backtesting framework for China's A-share market.
Exchange calendar, price-limit enforcement, T+1, fees and slippage —
production-grade market semantics in a single pip install.
driven by adversarial audits
from first backtest to portfolios
no future data in-session
true A-share trading days
One framework, from research to live trading
Event-Driven Engine
initialize → run_daily → handle_data, compatible with the JoinQuant / Zipline mental model. Signals on day T fill at day T+1 open — no look-ahead, by construction.
Full A-Share Data
Daily / minute / tick bars, fundamentals, money flow, northbound capital, limit-up/down stats. Local cache with resumable downloads for reproducible offline research.
Data APIs →Risk & Attribution
Sharpe / Sortino / Max Drawdown / Alpha·Beta, and a true single-period BHB Brinson attribution — allocation + selection + interaction, mathematically closed.
Analysis APIs →Paper Trading + Alerts
Live-data paper trading with session gating, DingTalk / Feishu push.
Paper trading →PTrade · QMT Export
One-click export to broker platforms — research to trading, seamless.
Export guide →Four lines of defense,
so results survive review
The hard rules of the A-share market — exchange calendar, price limits, T+1, fees — are default behaviors in EasyQuant, not options.
Price limits enforced by default
check_price_limit=True on by default; board- and date-aware limit table (ChiNext 20% since 2020-08-24), 5% ST channel. One-way limit boards can't be bought or sold into.
PIT data contract
26 data APIs truncate to T-1 or warn inside backtest sessions; avoid_future_data strict mode raises.
Exchange-authoritative calendar
Suspension-day orders cancelled same-day with recorded reasons; delisted positions force-liquidated after prolonged absence of bars. Backtest windows are never silently truncated.
Cost-honest metrics
Win rate and profit/loss ratio include two-sided commission and stamp duty; missing benchmarks render N/A instead of silent numbers.
Every backtest ships a review-ready report
Equity curve, drawdown, monthly returns, per-trade ledger, attribution — in HTML / Markdown / JSON / PNG, ready for your research review.
MACD trend + volumeSignals and equity curve
Bollinger mean reversionPer-trade ledger and drawdown
Portfolio strategyMulti-stock scoring and risk attribution
Results vary with market conditions. Samples shown for illustration only.
From install to your first backtest report
in about 15 minutes.
From install to your first trustworthy backtest report — tutorials, examples and API references are all ready.
For research and education only. Not investment advice. · 仅供学习研究,不构成投资建议