wayfinder
MAmattpocock/skills336k5,004 new stars in the last 7 days
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.
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).
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).
| 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 |
| 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.
2R by default; 1R, 1.5R or price:X also work.--entry). A short: v2 plans longs only.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./trader-entry triggers. Before that, --entry PRICE
plans ahead at the level you expect.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./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.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.
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.
"paper": true). Going live is the user's own decision, in their own config.MAmattpocock/skills336k5,004 new stars in the last 7 days
MAmattpocock/skills336k5,004 new stars in the last 7 days
MAmattpocock/skills336k5,004 new stars in the last 7 days
MAmattpocock/skills336k5,004 new stars in the last 7 days
MAmattpocock/skills336k5,004 new stars in the last 7 days
MAmattpocock/skills336k5,004 new stars in the last 7 days