跳到正文
FunCoding

qj-strategy-reviewer

Star
733
许可证
Apache-2.0
最近提交
2026年11月4日

skills/qj-strategy-reviewer/SKILL.md

在 GitHub 上查看

QuantJourney Strategy Reviewer

Use this skill to review a QuantJourney strategy for correctness before trusting its results. Check each item.

Timing / look-ahead

  • Signals must use data available at decision time. The engine lags weights by one bar (shift(1)); do not also peek forward inside _compute_signals (e.g. .shift(-1), centered rolling windows, using iloc[i+1]).
  • Rolling indicators must not include the current bar's future. Warm-up bars should be NaN/0, not filled with later data.

Data handling

  • Missing bars stay unavailable, not 0% returns. Don't fillna(0) on a returns series you then treat as real observations.
  • _compute_weights returning NaN → the name should drop out, not distort the normalization.

Weights and exposure

  • Long/cash: weights in [0, cap], sum ≤ 1. Confirm max_position_size matches the intended cap.
  • Long/short: check gross (Σ|w|) and net (Σw). Market-neutral should be net ≈ 0; a stray leg breaks neutrality.
  • Renormalization should not silently move positions you meant to freeze.

Costs and realism

  • A strategy that only works at zero cost does not work. Confirm slippage and commissions are set for anything turnover-heavy (intraday, reversal, daily rebalancing).
  • Short strategies: borrow/financing is not modeled — is the edge just the omitted carry? Flag it.

Mode fit

  • If the edge depends on stop-losses, brackets, or limit fills, it belongs in order mode, not weight mode.
  • Order mode: check gap handling expectations (a gap through a stop fills at the open, not the stop price) and that per-order commission minimums aren't assumed per fill.

Output

Report findings as: severity, where (method/line), what's wrong, and the fix. Separate real correctness bugs from style. Verify claims against the code, not assumptions.

相似的 Skill

reverse-engineer-anything

MOmorluto/rea486k近 7 天新增 8,943 个 star

reverse-engineer-anything

MOmorluto/rea486k近 7 天新增 8,943 个 star

test-driven-development

OBobra/superpowers331k近 7 天新增 4,772 个 star

精选

accessibility

审计 Web、iOS、Android 的无障碍合规,支持键盘导航与屏幕阅读器。

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star

ai-regression-testing

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star

agent-runtime-gateway-smoke-test

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star