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

trader-exit — скилл для Claude Code: что делает и как установить

Скилл trader-exit для Claude Code рассчитывает уровни стоп-лосса и тейк-профита перед входом в лонг-позицию. Запускается по запросам вроде «where's my stop» или сразу после срабатывания trader-entry.

MIT ★ 9 067 обновлён 2026-10-20

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add Jakeschincariol/day-trader-skill
/plugin install day-trader-skill@day-trader-skill
Открыть на GitHub

Что делает trader-exit

Скилл запускает скрипт exit.py и формирует план выхода из сделки до открытия позиции. Входные данные берутся из файла trader/entry.json либо задаются вручную флагом --entry. По умолчанию стоп выставляется на середину утреннего диапазона (or-mid) и округляется вниз до цента, а цель устанавливается на уровне 2R (или 1R по выбору). Доступны альтернативные правила стопа: нижняя граница диапазона (or-low), процент от цены, фиксированная котировка или множитель индикатора ATR.

Результат расчёта записывается в trader/plan.json, откуда его забирают модули симуляции, расчёта объёма и оповещений. Для расчёта ATR-стопа скилл обращается к публичному API графиков Yahoo за свечами текущей сессии либо читает локальный JSON через --offline.

Текущая версия работает строго с длинными позициями. План бракуется, если стоп оказался выше цены входа, цель ниже неё или риск на акцию составляет менее 0.05% стоимости инструмента. Все сделки принудительно закрываются к 15:55 по времени Нью-Йорка, позиции через ночь не переносятся. Заявки брокеру скилл не отправляет.

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

  • рассчитать уровни стоп-лосса и тейк-профита до открытия позиции
  • задать стоп по середине диапазона открытия или множителю ATR
  • проверить сделку на минимально допустимое соотношение риска и спреда
  • записать параметры выхода в trader/plan.json для других утилит

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

  • Спланируй выход из сделки: стоп по середине утреннего диапазона, цель 2R
  • exit.py plan --symbol TSLA --entry 364.18 --or-high 362.18 --or-low 354.47
  • Покажи текущий план выхода из trader/plan.json

Как установить trader-exit

1Через маркетплейс плагинов

/plugin marketplace add Jakeschincariol/day-trader-skill
/plugin install day-trader-skill@day-trader-skill

Команда ставит плагин day-trader-skill целиком, со всеми его скиллами

2Через Skills CLI (Vercel)

npx skills add Jakeschincariol/day-trader-skill --skill trader-exit -a claude-code

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

~/.claude/skills/trader-exit/SKILL.md

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

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

Вопросы о trader-exit

Как установить trader-exit в Claude Code?

Выполните в консоли команду npx skills add Jakeschincariol/day-trader-skill --skill trader-exit -a claude-code.

Что делает trader-exit?

Скилл рассчитывает стоп-лосс и тейк-профит для лонг-сделок на основе параметров входа, проверяет корректность риска и записывает готовый план в файл trader/plan.json.

Что нужно для работы trader-exit?

Требуется Python 3 для исполнения exit.py. Для расчёта стопа по ATR нужен доступ к бесплатному Yahoo chart API либо предварительно сохранённый файл сессии с флагом --offline.

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

SKILL.md · MIT
---
name: trader-exit
description: >-
  Exit Planner. Sets your stop and your target before you enter, so you know
  when to get out. Reads the entry from trader-entry (or a price you give),
  puts the stop at the opening-range midpoint by default (or the range low,
  your price, a percent, or a multiple of the ATR), rounds it down to the
  cent, and sets the target at 2R (or 1R, or your price). Refuses a stop at or
  above the entry, a target at or below it, or a stop too tight to survive the
  spread, and says why. Writes trader/plan.json for the Time Machine, the
  Budget Manager and Price Alerts. Long side only. Use when the user says
  "where's my stop", "set my stop and target", "plan the exit", "when do I get
  out", "stop loss", "what's my R", "risk reward", or right after
  /trader-entry triggers, before /trader-timemachine.
argument-hint: "[--stop or-mid|or-low|price:X|pct:X|atr:K] [--target 2R|1R|price:X]"
---

# trader-exit

The Exit Planner decides how a trade ends before it starts. The stop is where
the setup has failed. The target is where you take what you came for. Both
are set BEFORE the entry, written down and handed on, so nobody has to decide
anything in the middle of a fast move. A stop is a plan, not a guarantee: a
gap or a fast market can fill past it. Day trading loses most people money,
and a neat plan does not change that.

`${CLAUDE_SKILL_DIR}` below is this skill's folder (where this SKILL.md lives).

```bash
python3 "${CLAUDE_SKILL_DIR}/exit.py" plan                          # trader/entry.json: midpoint stop, 2R target
python3 "${CLAUDE_SKILL_DIR}/exit.py" plan --stop or-mid --target 1R --write
python3 "${CLAUDE_SKILL_DIR}/exit.py" plan --stop atr:1.5           # needs the session's bars (Yahoo or --offline)
python3 "${CLAUDE_SKILL_DIR}/exit.py" plan --symbol TSLA --entry 364.18 --or-high 362.18 --or-low 354.47
python3 "${CLAUDE_SKILL_DIR}/exit.py" show                          # the current trader/plan.json
```

Other flags: `--flat-by 15:55`, `--json`, `--now "2026-10-19 10:15"` (New
York time), `--entry PRICE` with a waiting entry.json to plan ahead, `--setup
level`, `--offline FILE` (a saved Yahoo chart JSON for an ATR stop).

## What it reads and writes

| file | what |
| --- | --- |
| `trader/entry.json` | the trigger from trader-entry: symbol, entry price, time, bar, opening range |
| `trader/config.json` | `flat_by` (15:55) and `min_reward_risk` (1.0: a note here, trader-risk enforces it) |
| Yahoo chart API | only for an `atr:K` stop: the session's bars up to the entry bar, free and unofficial |
| `trader/plan.json` | with `--write`: entry, stop and its rule, target and its R, risk a share, reward:risk, flat by. trader-timemachine, trader-budget and trader-alerts read it |

## Stops and targets

| stop | where it goes |
| --- | --- |
| `or-mid` | the opening-range midpoint (the default for an opening-range breakout) |
| `or-low` | the opening-range low: wider, so fewer shares for the same max loss |
| `price:X` | your price |
| `pct:X` | X percent under the entry |
| `atr:K` | K times the 14-bar ATR under the entry, on the session's bars up to the entry bar. With fewer than 14 bars by then it averages all of them and says so |

A level setup has no opening range to lean on, so it needs a stop you name.

- **Rounding.** The stop rounds AWAY from the entry to the cent (down, for a
  long). Risk = entry minus stop. Target = entry + R x risk, rounded half up
  to the cent. `2R` by default; `1R`, `1.5R` or `price:X` also work.
- **Refused, with the reason.** A stop at or above the entry. A target at or
  below it. A risk under 0.05% of the price: too tight to survive the
  spread, normal wiggle would stop you out. An entry.json that has not
  triggered (unless you give `--entry`). A short: v2 plans longs only.
- **Flat by.** 15:55 by default (or `flat_by` in the config). Out by then,
  win or lose, no overnight hold. On a 1:00 p.m. early close it moves up to
  12:55. An entry at or after the flat-by time is refused.

## Steps

1. Run it right after `/trader-entry` triggers. Before that, `--entry PRICE`
   plans ahead at the level you expect.
2. Use the default stop for an opening-range breakout unless the user names
   another. A level setup needs one: ask.
3. Run `exit.py plan --write`. Read back the entry, the stop and its rule,
   the target and its rule, the risk a share, reward:risk and flat by.
4. If it refuses, say the reason and the fix (a wider stop, a farther
   target). Never loosen anything on your own.
5. Say once that the stop is a plan, not a guarantee.
6. Hand off to `/trader-timemachine` to replay the plan, then `/trader-budget`
   to size it to the max loss per trade. Offer `/trader-alerts` for the stop,
   the target and the flat-by time. Claude can keep `entry.py watch` running
   in the background or on a `/loop` until a setup triggers, then come here.

## Example: the reel

TSLA, Monday 2026-10-19. The entry is 364.18 at 10:15 AM (the 10:10 bar,
bar 8) and the opening range is 354.47 to 362.18. `exit.py plan --stop
or-mid --target 1R --write`:

```
Exit plan: TSLA long, Mon 2026-10-19, opening-range breakout on 5-minute bars
  Entry         $364.18 at 10:15 AM (bar 8)
  Stop          $358.32  opening-range midpoint: ($362.18 + $354.47) / 2 = $358.325, rounded down
  Target        $370.04  1R (one times the risk)
  Risk a share  $5.86 (1.61% of the entry)
  Reward:risk   1.0
  Flat by       15:55 ET, win or lose: no overnight hold
```

The default 2R target would be 364.18 + 2 x 5.86 = 375.90. trader-budget then
sizes it: a $50 max loss per trade buys floor(50 / 5.86) = 8 shares.

## Rules

- The stop and the target are set before the entry, never after.
- Never move a stop further from the entry once the trade is on.
- Plain numbers only: entry, stop, target, risk a share, reward:risk. It
  never prints a P&L or a return.
- Nothing here promises winning trades or money. A 1R target is not a
  prediction that the price gets there.
- Long side only. v2 plans longs only.

## What it never does

It never places an order, never sizes a position, never widens a stop to
make a plan pass, and never calls a stop a guarantee.

## Safety

- Education and tooling, not financial advice. A PASS is a rules check, not a recommendation.
- Paper trading by default (`"paper": true`). Going live is the user's own decision, in their own config.
- Nothing in this pack places an order except trader-broker, and only when all three hold: trader-risk
  passed that exact order today, the user typed an explicit yes for that one order in the chat, and the
  user clicked Allow once on Claude's own card because the order tool is set to "Needs approval"
  (Customize > Connectors > tool permissions). Never set an order tool to "Always allow".
- No options, margin, short selling or leverage unless the config allows it and the user confirms.
- Broker keys live in environment variables or the Claude Desktop config, never in the chat.

© Jake Schincariol · MIT · Jakeschincariol/day-trader-skill

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

Все скиллы по теме «Финансы и бизнес» →
trader-memory-core tradermonty Скилл trader-memory-core для Claude Code ведёт инвестиционные тезисы от скрининга до закрытия сделки с расчётом P&L. Запускается при фразах вроде «register thesis» или «trading journal». CX Codex +1 3 700установок position-sizer tradermonty Скилл position-sizer рассчитывает размер позиции в акциях на основе риска на сделку, волатильности ATR или критерия Келли. Помогает определить число бумаг перед входом в сделку. CX Codex +1 4 400установок trader-risk ruvnet Скилл trader-risk оценивает VaR и CVaR портфеля через движок neural-trader, а также отслеживает лимиты просадок и статус защитных механизмов. CX Codex +1 732установок exit-strategies agiprolabs Скилл exit-strategies формализует правила закрытия сделок в криптотрейдинге и на токенах Solana. Помогает рассчитать стоп-лоссы по ATR, настроить трейлинг и зафиксировать прибыль по сетке. CX Codex +1 586установок trading-plan-generator jamesrochabrun Скилл trading-plan-generator формирует торговые планы с правилами управления риском, точками входа и выхода, а также расчётом позиций. Пригодится трейдерам на акциях, опционах или крипте. CX Codex +1 1 100установок dhanhq dhan-oss Интегрирует торговлю на индийских биржах NSE, BSE и MCX через DhanHQ API и Python SDK. Помогает выставлять ордера, смотреть стакан и строить опционные цепочки. CX Codex +1 1 500установок

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

Весь набор →
day-trader-skill Плагин day-trader-skill для Claude Code запускает одиннадцать инструментов для дейтрейдинга, включая сканер графиков, монитор новостей, таймер входа и симулятор сделок. ★ 9 067звёзд репо trader-news Скилл trader-news для Claude Code следит за новостями по акциям, 8-K и движением цены. Срабатывает по запросам о тикере, утреннем брифинге или после /trader-scanner. CX Codex +1 ★ 9 067звёзд репо trader-analyst Скилл trader-analyst для Claude Code выгружает финансовые показатели компаний из базы SEC EDGAR. Он сравнивает квартальные отчёты год к году перед открытием торговых сделок. CX Codex +1 ★ 9 067звёзд репо trader-pelosi Скилл trader-pelosi для Claude Code отслеживает биржевые сделки членов Конгресса США по отчётам PTR. Находит новые публикации в базе Палаты представителей и разбирает PDF на строки. CX Codex +1 ★ 9 067звёзд репо trader-entry Скилл trader-entry для Claude Code следит за барами и называет момент входа после закрытия выше уровня. Запускается по запросу следить за тикером или проверить пробой. CX Codex +1 ★ 9 067звёзд репо trader-alerts Скилл trader-alerts для Claude Code отслеживает ценовые уровни акций, стопы и время до закрытия биржи NYSE. Срабатывает при вызове команд проверки котировок или сразу после формирования торгового плана. CX Codex +1 ★ 9 067звёзд репо trader-budget Скилл trader-budget для Claude Code рассчитывает размер позиции по бюджету и максимальному убытку. Запускается по запросу о числе акций или после плана от trader-exit. CX Codex +1 ★ 9 067звёзд репо trader-risk Скилл trader-risk для Claude Code проверяет торговые заявки по лимитам риска до отправки брокеру. Он блокирует сделки без стопа, с превышением дневного убытка или вне торгового окна. CX Codex +1 ★ 9 067звёзд репо

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

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