CODING CHALLENGES

代码题库

用接近 LeetCode 的题表进入训练:先筛选题目,再进入双栏题面和编辑器。每道题只展示它实际声明支持的语言。

继续刷题

题目列表

显示 36 / 646 道可提交题。 当前筛选:标签:Backtesting,权限:订阅

提交状态:未尝试未正确已正确
未尝试
coding-backtest-with-borrow-cost订阅锁定
含隔夜融券成本的日频回测

Daily Backtest with Overnight Borrow Cost

中等面试准备Python / C++ / Rust
未尝试
coding-basel-traffic-light-zones订阅锁定
Basel VaR Backtest Traffic-Light Zones

Basel VaR Backtest Traffic-Light Zones

简单面试准备Python / C++ / Rust
未尝试
coding-blocked-cv-time-respecting订阅锁定
时序保留的分块 CV:连续折,train 严格早于 test

Blocked Time-Respecting CV: Contiguous Folds with Train-Before-Test

中等面试准备Python / C++ / Rust
未尝试
coding-brinson-attribution-three-effects订阅锁定
Brinson-Hood-Beebower 三效应归因

Brinson-Hood-Beebower Three-Effect Attribution

中等面试准备Python / C++ / Rust
未尝试
coding-calmar-ratio-annualized-return-over-mdd订阅锁定
Calmar 比率——年化收益与最大回撤

Calmar Ratio — Annualized Return over Maximum Drawdown

中等面试准备Python / C++ / Rust
未尝试
coding-choueifaty-diversification-ratio订阅锁定
高斯组合的 Choueifaty 分散化比率

Choueifaty Diversification Ratio of a Gaussian Portfolio

中等面试准备Python / C++ / Rust
未尝试
coding-christoffersen-independence-test订阅锁定
Christoffersen 独立性检验(VaR 突破聚集)

Christoffersen Independence Test for VaR Breach Clustering

中等面试准备Python / C++ / Rust
未尝试
coding-conditional-drawdown-at-risk订阅锁定
条件回撤风险

Conditional Drawdown at Risk

中等面试准备Python / C++ / Rust
未尝试
coding-cross-gamma-pnl-attribution订阅锁定
Cross-Gamma 盈亏归因:双资产 Greek 分解

Cross-Gamma PnL Attribution: Two-Asset Greek Decomposition

中等面试准备Python / C++ / Rust
未尝试
coding-gamma-vega-pnl-attribution订阅锁定
Black-Scholes 盈亏归因:Delta、Gamma、Vega、Theta

Black-Scholes PnL Attribution: Delta, Gamma, Vega, Theta

中等面试准备Python / C++ / Rust
未尝试
coding-information-ratio-active-return订阅锁定
主动收益序列的 Information Ratio

Information Ratio of an Active-Return Series

中等面试准备Python / C++ / Rust
未尝试
coding-kupiec-pof-test订阅锁定
Kupiec 失败比例 (POF) 检验统计量

Kupiec Proportion-of-Failures (POF) Test Statistic

中等面试准备Python / C++ / Rust
未尝试
coding-limit-order-fill-simulation订阅锁定
基于高低价 bar 的限价单成交模拟

Limit-Order Fill Simulation against High-Low Bars

中等面试准备Python / C++ / Rust
未尝试
coding-look-ahead-bias-detector订阅锁定
通过滞后相关比较检测前视偏差

Look-Ahead Bias Detector via Lagged-Correlation Comparison

中等面试准备Python / C++ / Rust
未尝试
coding-max-drawdown-duration订阅锁定
累积净值曲线上的最长回撤期

Maximum Drawdown Duration on the Equity Curve

中等面试准备Python / C++ / Rust
未尝试
coding-modigliani-m-squared-ratio订阅锁定
Modigliani M² — 波动率等价化的风险调整后收益

Modigliani M-Squared — Vol-Rescaled Risk-Adjusted Return

中等面试准备Python / C++ / Rust
未尝试
coding-omega-ratio-at-threshold订阅锁定
收益序列在阈值处的 Omega 比率

Omega Ratio of a Return Series at a Threshold

中等面试准备Python / C++ / Rust
未尝试
coding-pnl-attribution-greeks订阅锁定
基于 Greeks 的盈亏归因

Greek-Based PnL Attribution

中等面试准备Python / C++ / Rust
未尝试
coding-position-cap-clamp订阅锁定
单资产与组合层级敞口上限的目标权重夹取

Per-Asset and Portfolio Cap Clamping for Target Weights

中等面试准备Python / C++ / Rust
未尝试
coding-position-pnl-with-fees订阅锁定
含手续费的持仓盈亏

Position P&L With Transaction Fees

中等面试准备Python / C++ / Rust
未尝试
coding-purged-cv-folds订阅锁定
带禁运区的 Purged K 折交叉验证

Purged k-Fold CV with Embargo

中等面试准备Python / C++ / Rust
未尝试
coding-purged-kfold-cv-time-series订阅锁定
时间序列机器学习的 Purged K 折交叉验证

Purged k-Fold Cross-Validation for Time-Series ML

困难面试准备Python / C++ / Rust
未尝试
coding-rebalance-on-signal-change订阅锁定
按整数桶变化触发再平衡的低换手回测

Turnover-Aware Rebalance on Bucketed-Signal Change

中等面试准备Python / C++ / Rust
未尝试
coding-sortino-ratio-with-target订阅锁定
带目标收益的收益序列 Sortino 比率

Sortino Ratio of a Return Series with Target Return

中等面试准备Python / C++ / Rust
未尝试
coding-survivorship-aware-universe订阅锁定
考虑幸存者偏差的当日可交易股票池

Survivorship-Aware Tradeable Universe on a Date

中等面试准备Python / C++ / Rust
未尝试
coding-tracking-error-contribution-by-sector订阅锁定
各行业对跟踪误差方差的贡献

Tracking-Error Variance Contribution by Sector

中等面试准备Python / C++ / Rust
未尝试
coding-tracking-error-sample-stdev订阅锁定
主动收益序列的标量 Tracking Error

Scalar Tracking Error of an Active-Return Series

中等面试准备Python / C++ / Rust
未尝试
coding-treynor-ratio-systematic-risk-adjusted订阅锁定
Treynor 比率 — 系统性风险调整后的超额收益

Treynor Ratio — Systematic-Risk-Adjusted Excess Return

中等面试准备Python / C++ / Rust
未尝试
coding-up-down-capture-ratios订阅锁定
相对基准的上行捕获率与下行捕获率

Up-Capture and Down-Capture Ratios versus a Benchmark

中等面试准备Python / C++ / Rust
未尝试
coding-var-breach-counter订阅锁定
统计并标注 VaR 突破日

Count and Timestamp VaR Breaches

中等面试准备Python / C++ / Rust
未尝试
coding-vectorized-pnl-with-borrow-fee-rate-curve订阅锁定
含时变融券费率曲线的向量化 PnL

Vectorized PnL with Time-Varying Borrow Fee Curve

中等面试准备Python / C++ / Rust
未尝试
coding-vectorized-pnl-with-costs订阅锁定
含交易成本的向量化逐期 PnL

Vectorized Per-Period PnL with Transaction Costs

中等面试准备Python / C++ / Rust
未尝试
coding-vega-pnl-explain订阅锁定
按执行价网格的 Vega 分桶盈亏归因

Vega-Bucketed PnL Explain Across a Strike Grid

中等面试准备Python / C++ / Rust
未尝试
coding-walk-forward-train-test-splits订阅锁定
步进式训练/测试切分(含 embargo 间隔)

Walk-Forward Train/Test Splits with Embargo

中等面试准备Python / C++ / Rust
未尝试
coding-walkforward-expanding-window-folds订阅锁定
走向前 CV:扩展窗口与滚动窗口折

Walk-forward CV: Expanding and Rolling-window Folds

中等面试准备Python / C++ / Rust
未尝试
coding-walkforward-validation-strategy订阅锁定
Walk-Forward Validation for Time-Series Backtests

Walk-Forward Validation for Time-Series Backtests

困难面试准备Python / C++ / Rust