К основному содержанию
скилл CX Codex

parabolic-short-trade-planner — скилл для Claude Code: планы шортов

Скилл ищет акции США с признаками истощения параболического роста и собирает условные предрыночные планы шорта. Ордера не отправляет — только JSON и Markdown для ручной проверки.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add tradermonty/claude-trading-skills --skill parabolic-short-trade-planner -a claude-code
Открыть на GitHub

Что делает parabolic-short-trade-planner

Работает в три фазы. Первая — screen_parabolic.py: тянет дневные бары и профиль компании из FMP, отсекает кандидатов по жёстким правилам и скорит выживших по пяти факторам с весами 30/25/20/15/10, после чего присваивает оценки A/B/C/D. Вторая — generate_pre_market_plan.py: берёт JSON первой фазы, фильтрует по --tradable-min-grade (по умолчанию B), проверяет наличие бумаг для шорта через Alpaca и состояние SSR по правилу SEC Rule 201, затем строит по три триггерных плана на кандидата: пробой ORL, первая красная 5-минутка, провал VWAP.

Третья фаза — monitor_intraday_trigger.py. Она читает план, забирает 5-минутные бары, двигает конечный автомат каждого плана на шаг вперёд и пишет JSON со state, entry_actual, stop_actual и shares_actual. Запуск одноразовый: трейдер гоняет его каждые 1–5 минут через watch или cron. Повторный прогон в ту же минуту даёт тот же результат, потому что бары переигрываются с открытия до now_et.

Для первой фазы нужен FMP_API_KEY, для второй и третьей — ALPACA_API_KEY и ALPACA_SECRET_KEY. Без ключей Alpaca планировщик переходит на ManualBrokerAdapter и помечает всех кандидатов как borrow_inventory_unavailable со статусом watch_only — то есть торговать по такому плану нельзя, пока не подтвердите заём бумаг у брокера вручную. Тестировать без API можно на фикстурах: --dry-run --fixture для скрининга и --bars-source fixture для монитора.

Какие задачи решает

  • собрать дневной вотчлист по параболическим выносам из S&P 500
  • превратить вотчлист в предрыночные планы с оговорками по заёму и SSR
  • проверить, какие причины блокируют вход, а какие носят рекомендательный характер
  • отследить срабатывание триггера по 5-минутным барам и получить конкретное число акций
  • прогнать весь конвейер на фикстурах без ключей к рыночным данным

Примеры запросов агенту

  • построй вотчлист параболических шортов на сегодня в режиме safe_largecap
  • сгенерируй предрыночный план по reports/parabolic_short_2026-04-30.json при счёте 100000 и риске 50 bps
  • проверь триггеры по плану reports/parabolic_short_plan_2026-05-05.json на живых барах Alpaca

Как установить parabolic-short-trade-planner

1Через Skills CLI (Vercel)

npx skills add tradermonty/claude-trading-skills --skill parabolic-short-trade-planner -a claude-code

2Вручную: положить файлы

~/.claude/skills/parabolic-short-trade-planner/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/parabolic-short-trade-planner/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о parabolic-short-trade-planner

Как установить parabolic-short-trade-planner в Claude?

Выполните npx skills add tradermonty/claude-trading-skills --skill parabolic-short-trade-planner -a claude-code. После этого файл скилла появится по пути ~/.claude/skills/parabolic-short-trade-planner/SKILL.md.

Что делает parabolic-short-trade-planner?

Скорит акции США по пяти факторам истощения параболического роста, строит условные предрыночные планы шорта и следит за срабатыванием триггеров по 5-минутным барам. Ордера скилл не отправляет.

Нужны ли ключи API для работы скилла?

Да. Первой фазе нужен FMP_API_KEY, второй и третьей — ALPACA_API_KEY и ALPACA_SECRET_KEY. Без ключей Alpaca планы помечаются как watch_only, и заём бумаг придётся подтверждать вручную.

Исходный текст

SKILL.md · MIT
---
name: parabolic-short-trade-planner
description: Screen US equities for parabolic exhaustion patterns and generate conditional pre-market short plans, then evaluate intraday trigger fires from live 5-min bars. Phase 1 daily 5-factor scorer (MA extension / acceleration / volume climax / range expansion / liquidity), Phase 2 per-candidate plans for ORL break / first-red 5-min / VWAP fail with explicit borrow / SSR / manual-confirmation gating, Phase 3 one-shot intraday FSM that detects trigger fires and resolves concrete share counts. Covers Phase 1 + Phase 2 + Phase 3.
---

## Overview

Generate Qullamaggie-style Parabolic Short watchlists and conditional
pre-market plans for US equities. The skill never sends orders. It emits
JSON + Markdown that a human reviews against their broker before entry.

Three phases:

- **Phase 1 (`screen_parabolic.py`)**: pulls EOD bars + company profile
  from FMP, applies hard invalidation rules (mode-aware), scores
  survivors on 5 factors (weights 30/25/20/15/10), and assigns A/B/C/D
  grades.
- **Phase 2 (`generate_pre_market_plan.py`)**: takes the Phase 1 JSON,
  filters by `--tradable-min-grade` (default `B`), checks Alpaca short
  inventory (or `ManualBrokerAdapter`), evaluates SEC Rule 201 SSR
  state from the inherited prior-day close, and renders three trigger
  plans per candidate.
- **Phase 3 (`monitor_intraday_trigger.py`)**: reads the Phase 2 plan,
  fetches 5-min bars (Alpaca live or fixture), walks each plan's FSM
  forward by one step, persists per-plan state, and writes an
  `intraday_monitor` JSON with `state`, `entry_actual`, `stop_actual`,
  and `shares_actual` (when triggered). One-shot — trader runs it
  every 1–5 min via `watch` or cron; replay-deterministic so re-runs
  are byte-identical.

## When to Use

Invoke this skill when the user wants to:

- Build a daily Parabolic Short watchlist from S&P 500 (or a custom CSV).
- Translate a watchlist into pre-market trade plans with explicit
  borrow / SSR / state-cap gating.
- Audit a candidate's blocking vs advisory manual-confirmation reasons
  before placing an order at Alpaca.

Do NOT invoke for:

- Long-side momentum screening — use vcp-screener or canslim-screener.
- 1-minute / sub-minute intraday signals — Phase 3 evaluates 5-min
  bars only.
- Live order routing — this skill is detection-only by design;
  Phase 3 emits a `triggered` state with concrete entry/stop/share
  count, but the trader fires the order manually.

## Workflow

### Phase 1 — daily screener

1. Confirm `FMP_API_KEY` is set (env var or `--api-key`).
2. Run with the safer-by-default mode:
   ```bash
   python3 skills/parabolic-short-trade-planner/scripts/screen_parabolic.py \
     --mode safe_largecap --as-of 2026-04-30 --output-dir reports/
   ```
3. Inspect `reports/parabolic_short_<date>.md` — the watchlist is grouped
   by grade (A→D).
4. Promote interesting names to Phase 2.

For small-cap blow-offs, switch to `--mode classic_qm` (looser market
cap and ADV floors, higher 5-day ROC threshold).

For testing without the API, run `--dry-run --fixture <path>` against a
JSON fixture (one is shipped at `scripts/tests/fixtures/dry_run_minimal.json`).

### Phase 2 — pre-market plan generator

1. Optional: set `ALPACA_API_KEY` / `ALPACA_SECRET_KEY` for live borrow
   checks. Without them the planner falls back to `ManualBrokerAdapter`,
   which marks every candidate as `borrow_inventory_unavailable` /
   `plan_status: watch_only`.
2. Run:
   ```bash
   python3 skills/parabolic-short-trade-planner/scripts/generate_pre_market_plan.py \
     --candidates-json reports/parabolic_short_2026-04-30.json \
     --account-size 100000 --risk-bps 50 --output-dir reports/
   ```
3. Output: `reports/parabolic_short_plan_<date>.json`. Each plan contains
   three entry plans (5min ORL break, first red 5-min, VWAP fail) with
   `entry_hint` / `stop_hint` formula strings (no baked-in shares — the
   trader computes shares at trigger time from the `shares_formula`).

### Phase 3 — intraday trigger monitor

1. Confirm `ALPACA_API_KEY` / `ALPACA_SECRET_KEY` are set (Phase 3
   uses Alpaca market data; `data.alpaca.markets` works for both
   paper and live accounts).
2. During US regular session, run one-shot per cadence — typical is
   every 60 s during the first 30 min, then every 5 min:
   ```bash
   python3 skills/parabolic-short-trade-planner/scripts/monitor_intraday_trigger.py \
     --plans-json reports/parabolic_short_plan_2026-05-05.json \
     --bars-source alpaca \
     --state-dir state/parabolic_short/ \
     --output-dir reports/
   ```
   Or wrap in `watch -n 60 'python3 ...'` / cron.
3. Output: `reports/parabolic_short_intraday_<date>.json` lists every
   monitored plan with `state` (`armed` / `triggered` / `invalidated`
   / FSM-specific), bar-derived transition timestamps, and
   `size_recipe_resolved` (concrete `shares_actual`) when triggered.
4. For testing without the API, use `--bars-source fixture
   --bars-fixture <path>` against a JSON fixture
   (`scripts/tests/fixtures/intraday_bars/`).

Phase 3 trigger detection is not an order instruction. Before any manual
short entry, confirm borrow/locate availability, SEC Rule 201 SSR state,
broker short-sale controls, and the broker's current intraday margin or
day-trading controls. FINRA replaced the old pattern-day-trader day-count
and $25,000 minimum-equity requirements with intraday margin standards
effective 2026-06-04, with broker phase-in allowed through 2027-10-20.

Phase 3 is **idempotent**: each run replays the full session bars
from open up to `now_et` (or `--now-et` override), so re-running
during the same minute produces the same state. `prior_state` is
used only for diff/notification display; it never advances the FSM.

### Reviewing a plan before entry

Read three top-level fields per ticker:

- `plan_status`: `actionable` (manual gates can be cleared) or
  `watch_only` (hard blockers — borrow unavailable or SSR active).
- `blocking_manual_reasons`: must all be resolved before pulling the
  trigger.
- `advisory_manual_reasons`: heads-up only, e.g.
  `manual_locate_required` (always set), `warning:too_early_to_short`,
  `warning:recent_earnings_catalyst` (last earnings within
  `--earnings-catalyst-window-days`, default 10 trading days — flag the
  move as event-driven rather than pure technical blow-off).

### Earnings-aware screening

Phase 1 fetches the FMP earnings calendar once per run (single call,
not per-symbol) and emits two earnings-aware checks:

- `--exclude-earnings-within-days` (default 2 calendar days, forward) —
  hard invalidation when next earnings is within the window. Matches
  the legacy `earnings_blackout_days` semantic.
- `--earnings-catalyst-window-days` (default 10 trading days, backward)
  — soft warning `recent_earnings_catalyst` when last earnings is
  within the window. Routes to Phase 2 as an advisory manual reason
  without forcing `trade_allowed_without_manual: false`.

Per-candidate output exposes `last_earnings_date`, `next_earnings_date`,
`trading_days_since_earnings` (TRADING days), `earnings_within_days`
(CALENDAR days, forward), `earnings_blackout_days` (configured threshold),
and `earnings_in_blackout_window`. The legacy `earnings_within_2d` is
kept for backward compatibility.

Top-level dates: `as_of` is the planning date (Phase 2 contract — never
mutate); `run_date` mirrors it; `market_data_as_of` is the latest bar
date used for technical metrics (differs from `as_of` on weekend runs).

## Exchange Calendar and Replay

Install `requirements.txt` before running the planner. Phase 1 `--as-of` uses
strict `YYYY-MM-DD`, filters bars beyond that ceiling, and counts earnings age
with XNYS sessions. Phase 3 uses actual holidays and early closes; the close
boundary is exclusive. Historical dates are accepted only with Phase 1
`--dry-run` fixture data; live universe and profile endpoints are not PIT and
therefore fail closed for a non-current `--as-of`.

## Output Format

Phase 1 JSON: `parabolic_short_<as_of>.json` (schema_version 1.0).
Phase 2 JSON: `parabolic_short_plan_<as_of>.json` (schema_version 1.0).
Phase 3 JSON: `parabolic_short_intraday_<as_of>.json` (schema_version 1.0,
phase = `intraday_monitor`).
The contract is pinned by `tests/test_schema_contract.py` plus
`tests/test_monitor_intraday_smoke.py` for Phase 3.

## Resources

- `references/parabolic_short_methodology.md` — Qullamaggie's 3-trigger
  framework and exhaustion signals.
- `references/short_invalidation_rules.md` — mode-aware exclusion rules.
- `references/short_risk_management.md` — Rule 201, ETB vs HTB, locate.
- `references/intraday_trigger_playbook.md` — detail on each trigger
  type, the FSM transitions Phase 3 implements, and same-bar tie-break
  semantics.
- `references/broker_capability_matrix.md` — what each broker exposes
  through its API for short inventory.

© tradermonty · MIT · tradermonty/claude-trading-skills

Похожие скиллы

Всё по теме «Финансы и бизнес» →
copy-trade uniswap Отслеживает транзакции выбранного кошелька и зеркалит его свопы на Uniswap с учётом ограничений. Запускается по расписанию для автоматического повторения сделок. CX Codex +1 406установок dhanhq dhan-oss Интегрирует торговлю на индийских биржах NSE, BSE и MCX через DhanHQ API и Python SDK. Помогает выставлять ордера, смотреть стакан и строить опционные цепочки. CX Codex +1 1 300установок okx-cex-trade okx Скилл для ИИ-агента, который ставит, отменяет и меняет ордера на бирже OKX: спот, свопы, фьючерсы, опционы и событийные контракты. CX Codex +1 10 300установок trade-execution JoelLewis Скилл для оценки best execution, выбора алгоритмов исполнения и построения TCA. Пригодится, когда нужно разобрать маршрутизацию ордеров или подготовить отчёт для комитета. CX Codex +1 705установок pre-trade-compliance JoelLewis Скилл для проектирования систем, которые проверяют заявки до отправки брокеру: правила, блокировки, лимиты концентрации и списки ограничений. CX Codex +1 667установок trade-journal agiprolabs Ведёт журнал сделок, оценивает результативность стратегий и находит тильт. Пригодится трейдерам для проверки торговых гипотез. CX Codex +1 515установок

Из того же набора73

skill-designer Собирает из JSON-описания идеи готовый промпт, по которому Claude создаёт папку нового скилла со всеми файлами. CX Codex +1 3 200установок ibd-distribution-day-monitor Считает Distribution Days по QQQ и SPY, оценивает риск рынка и подсказывает, какую долю TQQQ или QQQ держать. Нужен для разбора после закрытия торгов. CX Codex +1 3 000установок trading-skills-navigator Подбирает подходящие воркфлоу и скиллы для трейдинга по вашему запросу. Помогает понять, с чего начать работу и какие цепочки запустятся без платных API-ключей. CX Codex +1 3 000установок trade-performance-coach Разбирает закрытые сделки, частичные выходы и месячные сводки по правилам, риску и качеству исполнения. Нужен для пост-трейд разбора. CX Codex +1 2 900установок crypto-regime-analyzer Считает композитный балл 0–100 по шести компонентам крипторынка и выдаёт рекомендацию по позе. Без ключей API. CX Codex +1 2 700установок weekly-performance-digest Считает недельную статистику по закрытым торговым тезисам trader-memory-core: винрейт, R-кратность, матожидание и MAE/MFE. Выдаёт отчёт в Markdown и JSON без внешних API. CX Codex +1 2 700установок drawdown-circuit-breaker Скилл читает журнал сделок trader-memory-core и решает, можно ли сегодня открывать новые позиции: дневной лимит убытка, серия лоссов, недельная и месячная просадка. CX Codex +1 2 700установок pre-trade-discipline-gate Проверяет чек-лист перед ручным входом в сделку и блокирует входы без плана, с превышением риска или в период отката. CX Codex +1 2 700установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой