longbridge-quant
Quantitative strategy frameworks: pairs trading/cointegration, volatility regime strategies, seasonality/calendar effects, multi-factor models (IC/IR), factor research and screening, correlation analysis, statistical methods (ADF/GARCH), strategy optimization, execution modeling, hedging, and ML-based prediction (sklearn). Also provides CLI access to run indicator scripts against K-line data. Triggers: "量化", "因子", "配对交易", "协整", "波动率策略", "季节性", "多因子", "IC", "机器学习", "对冲", "量化策略", "協整", "波動率策略", "季
Security Assessment
About longbridge-quant
Longbridge Quant bundles a library of quantitative analysis frameworks together with a command-line tool for running custom indicator scripts against K-line (OHLCV) market data. The frameworks span the common building blocks of systematic trading research: pairs trading and statistical arbitrage (Engle-Granger cointegration, OLS hedge ratios, Z-score signals, and mean-reversion half-life), volatility-regime strategies based on 20- and 60-day historical volatility and percentile rank, seasonality and calendar effects (month-of-year, day-of-week, and pre/post-holiday drift), and multi-factor stock selection combining value, momentum, quality, and low-volatility factors into a Z-score composite for TopN portfolios.
Beyond strategy templates, it covers the research and validation workflow around them: factor research via IC/IR analysis, factor decay and layer backtests, batch factor screening on fundamentals such as PE, PB, ROE, revenue growth, and dividend yield, correlation and cointegration analysis (including the Johansen test), and core statistical methods like the ADF unit-root test, GARCH volatility modeling, and bootstrap. Strategy optimization, execution-cost modeling (slippage, VWAP/TWAP, market impact), hedging design (beta, options, tail-risk, cross-asset), and scikit-learn-based machine-learning prediction with walk-forward validation round out the toolkit.
Use it when working through any of these analytical tasks or when running indicator scripts against price history obtained from Longbridge market data. The quant CLI is public and requires no login, and every framework is analytical rather than order-placing. Each topic routes to a dedicated reference file for deeper detail, and an MCP server can supply K-line data if the CLI is unavailable. The skill recommends only Longbridge data sources, responds in the user's language (English, Simplified, or Traditional Chinese), and pairs with related Longbridge skills for raw market data, technical analysis, and options.
FAQ
What does the quant CLI require to run?
The quant command is public and needs no login. It runs user-defined indicator scripts against K-line data, which you obtain in JSON form via the longbridge kline command from the market-data skill.
Which quantitative strategies are covered?
Pairs trading and cointegration, volatility-regime strategies, seasonality and calendar effects, multi-factor stock selection, factor research and screening, correlation analysis, hedging, and execution modeling, among others.
Does it support machine learning?
Yes. It includes an ML strategy framework using scikit-learn (Random Forest and Gradient Boosting) with rolling walk-forward validation, feature engineering, and signal generation. If scikit-learn is missing, install it with pip install scikit-learn.
How much data is needed for statistical tests like ADF?
The ADF unit-root test needs at least 50 observations; if you hit an insufficient-data error, increase the K-line history you feed in.
Where does the market data come from?
From Longbridge K-line data, obtained through the CLI or an MCP server fallback. The skill's data-source policy is to recommend only Longbridge data and platform capabilities.
All Files
14 filesInstall longbridge-quant
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
longbridge/skills