Strategy Pivot Designer

作者 tradermontyeab8d5cb97b9無授權條款2.9K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫3 天前更新

Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.

AI 產生的概覽

偵測回測迭代停滯,並為交易策略產生結構不同的策略轉向提案。

功能
此技能會分析累積的回測評估歷史,以偵測停滯觸發因素,例如分數高原期、過度擬合、成本侵蝕與尾端風險。當偵測到停滯時,它會透過假設反轉、原型切換與目標重新框架來產生結構不同的策略轉向提案。它會產出策略草稿 YAML 檔案、人類可讀的轉向報告、清單以及診斷 JSON。提案會依品質潛力與新穎性排序,可匯出的草稿會附上用於候選代理流程的工單 YAML。
適用情境
當回測分數在多次改進後仍停滯不前、策略出現過度擬合跡象、交易成本侵蝕微弱優勢,或回撤超出可接受門檻時,可使用此技能。它也適合針對同一市場假設探索根本不同的策略架構。
執行需求
Python 3.9+、PyYAML、回測評估的迭代歷史 JSON,以及來源策略草稿 YAML。它附上用於停滯偵測與轉向提案產生的可執行指令碼。

Strategy Pivot Designer

Overview

Detect when a strategy's backtest iteration loop has stalled and propose structurally different strategy architectures. This skill acts as the feedback loop for the Edge pipeline (hint-extractor -> concept-synthesizer -> strategy-designer -> candidate-agent), breaking out of local optima by redesigning the strategy's skeleton rather than tweaking parameters.

When to Use

  • Backtest scores have plateaued despite multiple refinement iterations.
  • A strategy shows signs of overfitting (high in-sample, low robustness).
  • Transaction costs defeat the strategy's thin edge.
  • Tail risk or drawdown exceeds acceptable thresholds.
  • You want to explore fundamentally different strategy architectures for the same market hypothesis.

Prerequisites

  • Python 3.9+
  • PyYAML
  • Iteration history JSON (accumulated backtest-expert evaluations)
  • Source strategy draft YAML (from edge-strategy-designer)

Output

  • pivot_drafts/research_only/*.yaml — strategy_draft compatible YAML proposals
  • pivot_drafts/exportable/*.yaml — export-ready drafts + ticket YAML for candidate-agent
  • pivot_report_*.md — human-readable pivot analysis
  • pivot_manifest_*.json — metadata for all generated files
  • pivot_diagnosis_*.json — stagnation detection results

Workflow

  1. Accumulate backtest evaluation results into an iteration history file using --append-eval.
  2. Run stagnation detection on the history to identify triggers (plateau, overfitting, cost defeat, tail risk).
  3. If stagnation detected, generate pivot proposals using three techniques: assumption inversion, archetype switch, objective reframe.
  4. Review ranked proposals (scored by quality potential + novelty).
  5. For exportable proposals, ticket YAML is ready for edge-candidate-agent pipeline.
  6. For research_only proposals, manual strategy design needed before pipeline integration.
  7. Feed the selected pivot draft back into backtest-expert for the next iteration cycle.

Quick Commands

Append a backtest evaluation to history (creates history if new):

bash
python3 skills/strategy-pivot-designer/scripts/detect_stagnation.py \  --append-eval reports/backtest_eval_2026-02-10_120000.json \  --history reports/iteration_history.json \  --strategy-id draft_edge_concept_breakout_behavior_riskon_core \  --changes "Widened stop_loss from 5% to 7%"

Detect stagnation:

bash
python3 skills/strategy-pivot-designer/scripts/detect_stagnation.py \  --history reports/iteration_history.json \  --output-dir reports/

Generate pivot proposals:

bash
python3 skills/strategy-pivot-designer/scripts/generate_pivots.py \  --diagnosis reports/pivot_diagnosis_*.json \  --strategy reports/edge_strategy_drafts/draft_*.yaml \  --max-pivots 3 \  --output-dir reports/

Resources

  • skills/strategy-pivot-designer/scripts/detect_stagnation.py
  • skills/strategy-pivot-designer/scripts/generate_pivots.py
  • references/stagnation_triggers.md
  • references/strategy_archetypes.md
  • references/pivot_techniques.md
  • references/pivot_proposal_schema.md
  • skills/backtest-expert/scripts/evaluate_backtest.py
  • skills/edge-strategy-designer/scripts/design_strategy_drafts.py

來源與署名

來源:tradermonty/claude-trading-skills位於skills/strategy-pivot-designer提交eab8d5c

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架

更多來自 tradermonty/claude-trading-skills 的技能

Weekly Performance Digest

tradermonty

將已平倉的交易論點彙整為每週績效報告,包含指標、模式分解與經驗教訓。

包含腳本
Data & Analytics2.9K3 天前更新

Trade Performance Coach

tradermonty

審查已記錄的交易,評估流程遵循、風險紀律、執行品質與行為模式,並產出教練報告。

包含腳本
Business & Finance2.9K3 天前更新

Skill Designer

tradermonty

Design new Claude skills from structured idea specifications. Use when the skill auto-generation pipeline needs to produce a Claude CLI prompt that creates a complete skill directory (SKILL.md, references, scripts, tests) following repository conventions.

包含腳本
待分類2.9K3 天前更新

Residual Edge Analyzer

tradermonty

Separate a strategy return series into declared baseline exposure and residual edge with returns-based OLS attribution, HAC inference, rolling stability, alternate-baseline sensitivity, and regime breakdowns. Use when evaluating whether backtest, out-of-sample, or live returns contain independent alpha beyond market, equal-weight, momentum, sector, or user-supplied factor returns; when explaining whether a drawdown came from baseline exposure or strategy-specific behavior; or when a strategy needs an attribution quality gate after backtesting. Do not use for holdings-based Brinson attribution, feature-level Shapley explanations, or analysis from summary metrics without a dated return series.

包含腳本
待分類2.9K3 天前更新

Pre Trade Discipline Gate

tradermonty

離線交易前檢查清單閘門,核准、複核或阻擋計畫中的手動下單並記錄決策。

包含腳本
Business & Finance2.9K3 天前更新

Manifoldbt Backtester

tradermonty

Runs a declarative strategy spec over OHLCV bars with the manifoldbt Rust engine, pairs the fill log into round trips, and emits the eight inputs the backtest-expert skill scores. Use when the user wants to execute a backtest, measure a rule they have described, obtain win rate / average win / average loss / max drawdown from real bars, or feed backtest-expert with measured numbers instead of estimates.

包含腳本
待分類2.9K3 天前更新