trader-exit
/trader-exit
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'
- Author
- sandysc0202-beep ↗
- Repository
- day-trader-skill-india ↗
- Licence
- MIT
- Last repository change
- 11.11.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 11.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: exit.py
What it does and when to use it
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'
Triggers from the description
Arguments
/trader-exit [--stop or-mid|or-low|price:X|pct:X|atr:K] [--target 2R|1R|price:X]
Original author 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'
How it works
- What it reads and writes
- Stops and targets
- Steps
- Example: the worked day in the tests
- Rules
- What it never does
- Safety
SKILL.md preview
---
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 RELIANCE --entry 1412.40 --or-high 1410.20 --or-low 1398.00
python3 "${CLAUDE_SKILL_DIR}/exit.py" show # the current trader/plan.json
```
Other flags: `--flat-by 14:55`, `--json`, `--now "2026-10-19 10:15"` (India
time, IST), `--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:00), `min_reward_risk` (1.0: a note here, trader-risk enforces it) and `tick_size` (blank: NSE's price bands) |
| 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 onto NSE's tick.** An order price on NSE must sit on the
stock's tick: ₹0.01 under ₹250, ₹0.05 up to ₹1,000, ₹0.10 up to ₹5,000,
₹0.50 up to ₹10,000, ₹1 up to ₹20,000 and ₹5 above (NSE's bands from April
2025). The stop rounds AWAY from the entry onto that grid (down, for a
long). Risk = entry minus stop. Target = entry + R x risk, rounded UP onto
the grid, so the R you asked for never shrinks. `2R` by default; `1R`,
`1.5R` or `price:X` also work. NSE sets each stock's band from a reference
price and reviews it, so near a band edge the guess can be off: set
`"tick_size"` in the config to the step FYERS shows for that stock.
- **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:00 by default (or `flat_by` in the config). Out by then,
win or lose, no overnight hold. It must be before the 3:30 PM close, and
FYERS squares off INTRADAY positions itself from 3:05 PM for stocks with
F&O contracts (3:20 PM for the rest, with a charge), so a later flat-by
gets a warning. 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 worked day in the tests
TSLA's real bars of Monday 2026-10-19 on the NSE clock (synthetic times). The
entry is 364.18 at 10:00 AM (the 9:55 bar, bar 8) and the opening range is
354.47 to 362.18. `exit.py plan --stop or-mid --target 1R --write`, with
NSE's ₹0.05 tick for a share at that price:
```
Exit plan: TSLA long, Mon 2026-10-19, opening-range breakout on 5-minute bars
Entry ₹364.18 at 10:00 AM (bar 8)
Stop ₹358.30 opening-range midpoint: (₹362.18 + ₹354.47) / 2 = ₹358.325, rounded down to the ₹0.05 tick
Target ₹370.10 1R (one times the risk)
Risk a share ₹5.88 (1.61% of the entry)
Reward:risk 1.01
Flat by 15:00 IST, win or lose: no overnight hold
```
The default 2R target would be 364.18 + 2 x 5.88 = 375.94, rounded up to
375.95. On a one-paisa grid (`"tick_size": 0.01`) the same plan is stop
358.32, target 370.04 and risk 5.86, the numbers the other tests use.
trader-budget then sizes it: a ₹500 max loss per trade buys
floor(500 / 5.88) = 85 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`). FYERS has no paper account, so paper means Claude records
a pretend fill and nothing goes to FYERS. Going live is the user's own decision, in their own config.
- Nothing in this pack places an order except trader-broker's `ticket.py place`, 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 for that command. Never add
`ticket.py place` (or a FYERS MCP order tool) to an "Always allow" list.
- No F&O, margin (MTF), short selling or leverage unless the config allows it and the user confirms.
- The FYERS login happens on FYERS' own page, never in the chat. The app secret lives in an environment
variable or `trader/fyers.secret`, never in the chat.
Files in this package (2)
- SKILL.md 8 KB
- exit.py 33 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · sandysc0202-beep/day-trader-skill-india | 100 | MIT |
| rajumegal01-source/nse-day-trader-skill | 100 | MIT |
| trmxvibs/day-trader-skill-india | 100 | MIT |
| jakeschincariol/day-trader-skill | 100 | MIT |
| Khuranasidharth/day-trader-india | 100 | MIT |
| fenilmodi00/day-trader-skill-india | 100 | MIT |
| AtiqMunawwar/crypto-day-trader-skill | 100 | MIT |
| rajdavee/bharat-trader | 87 | MIT |
| Vatsa10/nse-trader-skills | 87 | MIT |
Database snapshot: 13.11.2026 · package version 3fed7f739a0c (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100trader-in-exit
Exit Planner for the Indian market (NSE, IST). Sets your stop and your target before you enter, so you know when to get out. Reads the entry from trader-in-entry (or a price you give), puts the stop at the opening-range midpoint by default (or the range low, your price, a… - 87trader-in-exit
Exit Planner for Indian stocks (NSE, BSE). Sets your stop and your target before you enter, so you know when to get out. Reads the entry from trader-in-entry (or a price you give), puts the stop at the opening-range midpoint by default (or the range low, your price, a percent,… - 100bharat-exit
Exit Planner for NSE intraday trades. Sets your stop and your target before you enter, so you know when to get out. Reads the entry from bharat-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… - 100nse-exit
Exit Planner for NSE and BSE trades. Sets your stop and your target before you enter, so you know when to get out. Reads the entry from /nse-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… - 100nse-exit
Exit Planner for NSE/BSE. Sets your stop and your target before you enter, so you know when to get out. Reads the entry from nse-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… - 100nse-exit
NSE Exit Planner for Indian intraday trading, long only. Sets the stop, the target and the time exit BEFORE the entry: the stop from the opening range (midpoint or low), a percent, a price or an ATR multiple; the target as a multiple of the risk (2R), a percent or a price; out…