strategy-framework
売買ルール、ポジションサイズ、リスク管理、目標設定など、取引戦略に必要な要素を標準化されたテンプレートで定義し、一貫性のある投資判断を支援するSkill。
📜 元の英語説明(参考)
Standardized template for defining trading strategies with entry rules, exit rules, position sizing, risk parameters, and performance criteria
🇯🇵 日本人クリエイター向け解説
売買ルール、ポジションサイズ、リスク管理、目標設定など、取引戦略に必要な要素を標準化されたテンプレートで定義し、一貫性のある投資判断を支援するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o strategy-framework.zip https://jpskill.com/download/10440.zip && unzip -o strategy-framework.zip && rm strategy-framework.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/10440.zip -OutFile "$d\strategy-framework.zip"; Expand-Archive "$d\strategy-framework.zip" -DestinationPath $d -Force; ri "$d\strategy-framework.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
strategy-framework.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
strategy-frameworkフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
ストラテジーフレームワーク
トレーディング戦略を定義、文書化、テスト、および管理するための標準化されたシステムです。このスキルは、規律を強制し、再現性を可能にし、戦略をテスト可能にするためのテンプレートとツールを提供します。
ストラテジーフレームワークが重要な理由
書かれた戦略フレームワークなしで取引を行うと、次のようになります。
- 一貫性の欠如: ルールではなく感情によって動かされるアドホックな意思決定
- テスト不能: バックテストまたは評価できない曖昧なアイデア
- スコープクリープ: バージョン管理された定義なしに逸脱する戦略
- 管理されていないリスク: ストップロス、ポジション制限、またはドローダウン停止の欠如
戦略フレームワークは、あなたに以下を強制します。
- 市場の非効率性に関する反証可能な仮説を述べる
- 正確で、機械的にテスト可能なエントリーおよびエグジットルールを定義する
- 取引前にポジションサイズとリスクパラメータを指定する
- 継続または廃止のための最小パフォーマンス基準を設定する
- バージョン管理された戦略ドキュメントを通じて変更を追跡する
ストラテジー定義テンプレート
すべての戦略は、標準テンプレートを使用して文書化する必要があります。完全なコピー&ペーストテンプレートは、references/strategy_template.md にあります。
コアセクション
アイデンティティ
Name: SOL-EMA-Cross v1.0
Asset class: Solana tokens (top 50 by 24h volume)
Timeframe: Primary 1H, confirmation 4H
Style: Trend following
エッジ仮説: あなたが利用している市場の非効率性と、それが存在する理由を述べてください。
Hypothesis: Solana mid-cap tokens exhibit momentum persistence
on the 1H timeframe due to retail herding behavior and low
institutional participation. EMA crossovers capture the
initiation of these trends.
エントリールール: 特定の、テスト可能な条件を AND/OR ロジックと組み合わせます。
def entry_signal(data: pd.DataFrame) -> bool:
"""All conditions must be True (AND logic)."""
ema_cross = data["ema_12"] > data["ema_26"] # EMA 12 crossed above 26
ema_rising = data["ema_26"].diff(3) > 0 # 26 EMA trending up
volume_ok = data["volume"] > data["vol_sma_20"] * 1.5 # Volume confirmation
regime_ok = data["adx"] > 20 # Trending regime
return ema_cross & ema_rising & volume_ok & regime_ok
エグジットルール: すべての戦略には、複数のエグジットメカニズムが必要です。
| Exit Type | Method | Parameters |
|---|---|---|
| Stop Loss | ATR-based | 2.0 × ATR(14) below entry |
| Take Profit | Risk multiple | 3.0 × risk (3:1 R:R) |
| Trailing Stop | Chandelier | 3.0 × ATR(14) from highest high |
| Time Stop | Bar count | Close if flat after 20 bars |
| Signal Exit | EMA reversal | EMA 12 crosses below EMA 26 |
ポジションサイジング: 方法とパラメータ。詳細については、position-sizing スキルを参照してください。
risk_per_trade = 0.02 # 2% of portfolio
stop_distance_pct = 0.05 # 5% from entry (ATR-derived)
position_size = (portfolio * risk_per_trade) / stop_distance_pct
リスクパラメータ: ポートフォリオレベルのガードレール。risk-management スキルを参照してください。
Max concurrent positions: 5
Risk per trade: 2% of portfolio
Daily loss limit: 5% of portfolio
Max drawdown halt: 15% — stop trading, review strategy
Correlated exposure limit: 10% (e.g., meme tokens combined)
フィルター: シグナルが発火した場合でも、エントリーを防ぐ条件。
def filters_pass(token: dict, market: dict) -> bool:
"""All filters must pass before entry is allowed."""
volume_ok = token["volume_24h"] > 500_000 # Min $500K volume
liquidity_ok = token["liquidity"] > 100_000 # Min $100K liquidity
age_ok = token["age_days"] > 7 # Not brand new
holders_ok = token["holder_count"] > 500 # Sufficient distribution
regime_ok = market["regime"] != "crisis" # No crisis regime
return all([volume_ok, liquidity_ok, age_ok, holders_ok, regime_ok])
パフォーマンス基準: いつ継続、レビュー、または廃止するか。
Continue: Sharpe > 1.0, PF > 1.5, Win Rate > 40%, MDD < 20%
Review: Any metric degrades 25% from baseline
Retire: Rolling 30-day Sharpe < 0, or 3 consecutive losing months
ストラテジーライフサイクル
1. 仮説
市場の非効率性を特定し、それが存在する理由と、それが持続する可能性のある理由を説明します。
良い仮説: 「ボンディングカーブで10分以内に80以上の SOL に達する新しい PumpFun トークンは、Raydium に移行する確率が65%であり、移行時に予測可能な価格スパイクが発生する。」
悪い仮説: 「SOL は上昇するでしょう。」(具体的ではなく、テスト可能ではなく、エッジが特定されていません。)
2. 定義
references/strategy_template.md のテンプレートを使用して、完全な戦略ドキュメントを作成します。すべてのフィールドに入力する必要があります。フィールドに入力できない場合、戦略は準備ができていません。
3. バックテスト
vectorbt または同等のものを使用して、過去のデータでテストします。要件:
- テスト期間中に最低100回の取引
- ウォークフォワード検証を使用する(70%でトレーニングし、30%でテストする)
- スリッページと手数料を考慮する(
slippage-modelingスキルを参照) - インサンプルとアウトオブサンプルの両方のメトリクスを報告する
4. ペーパートレード
少なくとも2週間(または30回の取引、いずれか長い方)シミュレーションで戦略を実行します。
- ペーパーの結果をバックテストの期待と比較する
- 結果が25%以上異なる場合は、続行する前に調査する
5. スモールライブ
最小限の実行可能なサイズで取引します(手数料をカバーするのに十分な大きさで、取るに足らないほど小さい)。
- 少なくとも30回の取引を実行する
- ペーパートレードの結果と比較する
6. スケール
スモールライブのメトリクスが期待と一致する場合(バックテストの25%以内):
- ポジションサイズを徐々に増やす(週あたり25%刻み)
- メトリクスを継続的に監視する
7. 監視
継続的なパフォーマンス追跡:
- 毎日:損益、取引数、勝率
- 毎週:シャープレシオ、プロフィットファクター、ドローダウン
- 毎月:パフォーマンス基準に対する完全な戦略レビュー
8. 廃止
次の場合に戦略の使用を停止します。
- ローリング30日シャープレシオが0を下回る
- 3か月連続で損失が発生する
- 市場レジームが永続的に変化する(例:規制の変更)
- より良い戦略が同じエッジに対してそれを置き換える
ストラテジー評価基準
戦略の最小閾値
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Strategy Framework
A standardized system for defining, documenting, testing, and managing trading strategies. This skill provides templates and tools that enforce discipline, enable reproducibility, and make strategies testable.
Why a Strategy Framework Matters
Trading without a written strategy framework leads to:
- Inconsistency: ad-hoc decisions driven by emotion rather than rules
- Untestability: vague ideas that cannot be backtested or evaluated
- Scope creep: strategies that drift without version-controlled definitions
- Unmanaged risk: missing stop losses, position limits, or drawdown halts
A strategy framework forces you to:
- State a falsifiable hypothesis about a market inefficiency
- Define precise, machine-testable entry and exit rules
- Specify position sizing and risk parameters before trading
- Set minimum performance criteria for continuation or retirement
- Track changes through versioned strategy documents
Strategy Definition Template
Every strategy must be documented using the standard template. The full copy-paste template is in references/strategy_template.md.
Core Sections
Identity
Name: SOL-EMA-Cross v1.0
Asset class: Solana tokens (top 50 by 24h volume)
Timeframe: Primary 1H, confirmation 4H
Style: Trend following
Edge Hypothesis: State what market inefficiency you are exploiting and why it exists.
Hypothesis: Solana mid-cap tokens exhibit momentum persistence
on the 1H timeframe due to retail herding behavior and low
institutional participation. EMA crossovers capture the
initiation of these trends.
Entry Rules: Specific, testable conditions combined with AND/OR logic.
def entry_signal(data: pd.DataFrame) -> bool:
"""All conditions must be True (AND logic)."""
ema_cross = data["ema_12"] > data["ema_26"] # EMA 12 crossed above 26
ema_rising = data["ema_26"].diff(3) > 0 # 26 EMA trending up
volume_ok = data["volume"] > data["vol_sma_20"] * 1.5 # Volume confirmation
regime_ok = data["adx"] > 20 # Trending regime
return ema_cross & ema_rising & volume_ok & regime_ok
Exit Rules: Every strategy needs multiple exit mechanisms.
| Exit Type | Method | Parameters |
|---|---|---|
| Stop Loss | ATR-based | 2.0 × ATR(14) below entry |
| Take Profit | Risk multiple | 3.0 × risk (3:1 R:R) |
| Trailing Stop | Chandelier | 3.0 × ATR(14) from highest high |
| Time Stop | Bar count | Close if flat after 20 bars |
| Signal Exit | EMA reversal | EMA 12 crosses below EMA 26 |
Position Sizing: Method and parameters. See the position-sizing skill for details.
risk_per_trade = 0.02 # 2% of portfolio
stop_distance_pct = 0.05 # 5% from entry (ATR-derived)
position_size = (portfolio * risk_per_trade) / stop_distance_pct
Risk Parameters: Portfolio-level guardrails. See the risk-management skill.
Max concurrent positions: 5
Risk per trade: 2% of portfolio
Daily loss limit: 5% of portfolio
Max drawdown halt: 15% — stop trading, review strategy
Correlated exposure limit: 10% (e.g., meme tokens combined)
Filters: Conditions that prevent entry even if signals fire.
def filters_pass(token: dict, market: dict) -> bool:
"""All filters must pass before entry is allowed."""
volume_ok = token["volume_24h"] > 500_000 # Min $500K volume
liquidity_ok = token["liquidity"] > 100_000 # Min $100K liquidity
age_ok = token["age_days"] > 7 # Not brand new
holders_ok = token["holder_count"] > 500 # Sufficient distribution
regime_ok = market["regime"] != "crisis" # No crisis regime
return all([volume_ok, liquidity_ok, age_ok, holders_ok, regime_ok])
Performance Criteria: When to continue, review, or retire.
Continue: Sharpe > 1.0, PF > 1.5, Win Rate > 40%, MDD < 20%
Review: Any metric degrades 25% from baseline
Retire: Rolling 30-day Sharpe < 0, or 3 consecutive losing months
Strategy Lifecycle
1. Hypothesis
Identify a market inefficiency and explain why it exists and why it might persist.
Good hypothesis: "New PumpFun tokens that reach 80+ SOL in bonding curve within 10 minutes have a 65% probability of graduating to Raydium, creating a predictable price spike at graduation."
Bad hypothesis: "SOL will go up." (Not specific, not testable, no edge identified.)
2. Definition
Write the full strategy document using the template in references/strategy_template.md. Every field must be filled. If you cannot fill a field, the strategy is not ready.
3. Backtest
Test on historical data using vectorbt or equivalent. Requirements:
- Minimum 100 trades in the test period
- Use walk-forward validation (train on 70%, test on 30%)
- Account for slippage and fees (see
slippage-modelingskill) - Report both in-sample and out-of-sample metrics
4. Paper Trade
Run the strategy in simulation for at least 2 weeks (or 30 trades, whichever is longer).
- Compare paper results to backtest expectations
- If results differ by more than 25%, investigate before proceeding
5. Small Live
Trade with minimum viable size (enough to cover fees, small enough to be inconsequential).
- Run for at least 30 trades
- Compare to paper trade results
6. Scale
If small-live metrics match expectations (within 25% of backtest):
- Increase position size gradually (25% increments per week)
- Monitor metrics continuously
7. Monitor
Ongoing performance tracking:
- Daily: P&L, trade count, win rate
- Weekly: Sharpe ratio, profit factor, drawdown
- Monthly: Full strategy review against performance criteria
8. Retire
Stop using a strategy when:
- Rolling 30-day Sharpe drops below 0
- Three consecutive losing months
- Market regime permanently shifts (e.g., regulatory change)
- A better strategy replaces it for the same edge
Strategy Evaluation Criteria
Minimum thresholds before a strategy should be traded live:
| Metric | Trend Following | Mean Reversion | Scalping |
|---|---|---|---|
| Min Trades | 100 | 100 | 500 |
| Sharpe (OOS) | > 1.0 | > 1.0 | > 1.5 |
| Profit Factor | > 1.5 | > 1.5 | > 1.3 |
| Max Drawdown | < 20% | < 15% | < 10% |
| Win Rate | > 35% | > 55% | > 55% |
| Avg Win/Avg Loss | > 2.0 | > 1.0 | > 1.0 |
Strategy Types for Crypto
Detailed descriptions of each strategy type are in references/strategy_types.md.
Momentum / Trend Following
- Edge: Price trends persist due to behavioral biases and information asymmetry
- Indicators: EMA crossovers, SuperTrend, ADX, MACD
- Win rate: 35-45%, relies on large winners
- Best regime: Trending markets with moderate volatility
Mean Reversion
- Edge: Price oscillates around equilibrium due to overreaction
- Indicators: RSI, Bollinger Bands, z-score, VWAP deviation
- Win rate: 55-65%, relies on high win rate with smaller gains
- Best regime: Ranging markets with low-moderate volatility
Breakout
- Edge: Compressed volatility leads to directional expansion
- Indicators: Bollinger Band squeeze, Donchian channels, volume breakout
- Win rate: 30-40%, relies on catching large moves
- Best regime: Transitioning from low to high volatility
Copy Trading / Wallet Following
- Edge: Skilled wallets have informational or analytical advantages
- Indicators: Wallet PnL history, trade frequency, token selection
- Win rate: Depends on followed wallet quality
- Best regime: Any (depends on followed wallet's strategy)
PumpFun Sniping
- Edge: Predictable price dynamics around token creation and graduation
- Strategies: Creation snipe, volume confirmation, graduation play
- Win rate: Highly variable (20-60% depending on approach)
- Best regime: High retail activity periods
Arbitrage
- Edge: Price discrepancies across DEXs or between spot and perpetuals
- Indicators: Price feeds from multiple venues, funding rates
- Win rate: > 80% when executed correctly
- Best regime: High volatility, fragmented liquidity
Market Making
- Edge: Capturing bid-ask spread while managing inventory risk
- Indicators: Order book depth, volatility, inventory position
- Win rate: > 60%, relies on volume and spread capture
- Best regime: Stable markets with consistent volume
Common Strategy Mistakes
- No written rules: Trading on intuition, unable to backtest or reproduce
- Curve fitting: Optimizing parameters until backtest looks perfect, fails live
- Missing stops: "I'll exit when it feels right" leads to catastrophic losses
- Ignoring regime: Using a trend strategy in a ranging market (or vice versa)
- Survivorship bias: Only backtesting tokens that still exist
- Lookahead bias: Using future information in backtest signals
- Ignoring costs: Not accounting for slippage, fees, and market impact
- Over-trading: Entering on marginal signals to "stay active"
- Strategy hopping: Abandoning strategies after normal losing streaks
- No retirement plan: Continuing to trade a broken strategy out of attachment
Integration with Other Skills
| Skill | Integration |
|---|---|
vectorbt |
Backtest strategy definitions programmatically |
pandas-ta |
Compute technical indicators for entry/exit signals |
regime-detection |
Market regime filters for strategy activation |
exit-strategies |
Detailed exit rule implementation |
position-sizing |
Position size calculation methods |
risk-management |
Portfolio-level risk parameter enforcement |
slippage-modeling |
Realistic execution cost estimation |
feature-engineering |
ML feature computation from strategy signals |
Files
References
references/strategy_template.md— Complete copy-paste strategy definition templatereferences/strategy_types.md— Detailed guide to each strategy type with parameters and examples
Scripts
scripts/define_strategy.py— Interactive strategy definition tool with--demomodescripts/strategy_scorecard.py— Strategy evaluation scorecard with GO/REVIEW/NO-GO recommendations