mcpField
B
breakout-trade-planner

breakout-trade-planner

github.com/mphinanceOther3286 installsUpdated 3d ago
Repository

About breakout-trade-planner

A skill that converts VCP screener JSON into breakout trade plans using Mark Minervini's methodology. It calculates position sizes under portfolio risk limits and produces JSON/Markdown reports with Alpaca-compatible order templates.

Key features

  1. 01Plan trades from VCP screener JSON
  2. 02Calculate position sizes and stop levels
  3. 03Enforce portfolio and sector risk limits
  4. 04Filter candidates using Minervini criteria
  5. 05Produce Alpaca-compatible order templates

Use cases

  1. 01Create plans from VCP screener results
  2. 02Assess breakout entry, stop, and target levels
  3. 03Manage portfolio heat across candidate trades
  4. 04Review actionable orders and watchlist candidates

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mphinance/alpha-skills --skill breakout-trade-planner

After installing, type/breakout-trade-plannerin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
references/
minervini_entry_rules.md
scripts/
order_builder.py
plan_breakout_trades.py
risk_calculator.py
scripts/tests/
conftest.py
test_order_builder.py
test_plan_breakout_trades.py
test_risk_calculator.py

Details

From the project README

Breakout Trade Planner

Generate trade plans from VCP screener output following Mark Minervini's breakout methodology. Calculate position sizes using worst-case entry prices, enforce portfolio risk limits, and output Alpaca API-compatible order templates.

When to Use

  • User has VCP screener JSON output and wants trade plans
  • User asks for breakout entry/stop/target calculation
  • User wants Alpaca order templates for VCP breakout candidates
  • User needs position sizing with portfolio heat management

Prerequisites

  • VCP screener JSON output with schema_version: "1.0"
  • No API keys required (works with local JSON files)
  • No external skill dependencies (position sizing is built-in)

Workflow

Step 1: Generate Trade Plans

Run the planner with VCP screener output:

python3 skills/breakout-trade-planner/scripts/plan_breakout_trades.py \
  --input reports/vcp_screener_YYYY-MM-DD.json \
  --account-size 100000 \
  --risk-pct 0.5 \
  --output-dir reports/
Step 2: Review Output

Read the generated JSON and Markdown reports. Present:

  1. Actionable Orders — Pre-breakout candidates with order templates
  2. Revalidation — Breakout-state candidates needing live confirmation
  3. Watchlist — Developing VCP candidates to monitor
  4. Rejected/Deferred/Constrained — Candidates filtered by Gate or portfolio limits
Step 3: Explain Trade Plans

For each actionable order, explain:

  • Entry levels (signal vs worst-case) and stop-loss placement
  • R-multiple targets and reward-risk ratio
  • Two execution modes: pre_place (stop-limit) vs post_confirm (limit after 5min confirmation)
  • Portfolio risk contribution and cumulative heat

Minervini Gate (Filtering Criteria)

Candidates must pass ALL conditions:

ConditionPre-breakoutBreakout
valid_vcpTrueTrue
rating_bandgood/strong/textbookgood/strong/textbook
risk_pct_worst<= 8.0%<= 8.0%
breakout_volume—True
distance_from_pivot—<= max_chase_pct
current_price—<= worst_entry

CLI Parameters

ParameterDefaultDescription
--account-size(required)Account equity in dollars
--risk-pct0.5Base risk % per trade
--max-position-pct10.0Max single position %
--max-sector-pct30.0Max sector exposure %
--max-portfolio-heat-pct6.0Max total open risk %
--target-r-multiple2.0Take-profit R-multiple
--stop-buffer-pct1.0Stop buffer below contraction low
--max-chase-pct2.0Max chase above pivot
--pivot-buffer-pct0.1Pivot buffer for buy-stop trigger
--current-exposure-jsonNoneExisting portfolio exposure

Output

  • breakout_trade_plan_YYYY-MM-DD_HHMMSS.json — Structured plans with order templates
  • breakout_trade_plan_YYYY-MM-DD_HHMMSS.md — Human-readable report

Resources

  • references/minervini_entry_rules.md — Entry methodology and rules

Comments

Markdown supported