# Trader exit

> Trader exit is an open-source agent skill for finance and payments. Sets a long trade's stop, profit target and flat-by time before you enter. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/Merrymen-Labs/merrymen/tree/main/plugins/merrymen-trader/skills/trader-exit
- **Repository:** https://github.com/merrymen-labs/merrymen
- **GitHub stars:** 52
- **License:** MIT
- **Skill name:** trader-exit
- **Collection:** https://github.com/Merrymen-Labs/merrymen
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-12-01

## About

Trader Exit plans how a long day trade ends before it begins. It takes the entry from the companion trader-entry skill or a price you supply, places a stop at the opening-range midpoint by default (alternatives include the range low, a fixed price, a percent below entry, or a multiple of the 14-bar ATR), and sets a profit target at 2R unless you choose 1R, 1.5R or a fixed price. The stop is rounded down to the cent, and the plan is refused with an explanation if the stop sits at or above the entry, the target at or below it, or the stop is so tight it would not survive the bid-ask spread.

The script writes the result to a plan file that other trader skills read for replay, position sizing and price alerts. It also enforces a default flat-by time of 15:55 Eastern, moved to 12:55 on early-close days, and refuses entries at or after that time. The skill reports entry, stop and its rule, target, risk per share, reward-to-risk ratio and flat-by time, and reminds the user that a stop is a plan rather than a guarantee.

Running it needs Python 3. An ATR-based stop pulls the session's bars from Yahoo's unofficial chart API or can read a saved chart file offline. Only long trades are supported.

## When your agent uses 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'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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/Merrymen-Labs/merrymen/tree/HEAD/plugins/merrymen-trader/skills/trader-exit)
- [Network calls found in its scripts](https://github.com/Merrymen-Labs/merrymen/tree/HEAD/plugins/merrymen-trader/skills/trader-exit)
- [License: MIT](https://github.com/Merrymen-Labs/merrymen/tree/HEAD/plugins/merrymen-trader/skills/trader-exit)

## Features

- **Stop placement options:** Stops can sit at the opening-range midpoint, the range low, a set price, a percentage below entry, or a multiple of ATR.
- **Target by reward multiple:** Profit targets are set as a multiple of risk, defaulting to 2R, with 1R, 1.5R or a fixed price also available.
- **Refusal checks:** Plans are rejected when the stop is at or above entry, the target is at or below entry, or the stop is too tight for the spread.
- **Flat-by time enforcement:** Positions are closed by 15:55 by default, with an earlier cutoff on early-close sessions, and late entries are refused.
- **Shared plan file:** The plan is saved to a JSON file read by the replay, budget and price alert skills.
- **Rounding to the cent:** Stops round away from entry and targets round half up, so prices stay on valid tick increments.

## Good for

- Set a stop and target for an opening-range breakout before entering
- Work out how many shares fit a fixed maximum loss per trade
- Check whether a planned stop is too tight for the current spread
- Plan a long entry ahead of time at an expected price level
- Get a reminder to exit all positions before the close

## Install

### Claude Code

This skill ships in the `merrymen-trader` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add Merrymen-Labs/merrymen
/plugin install merrymen-trader@merrymen
```

Or copy only this skill to `~/.claude/skills/trader-exit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Merrymen-Labs/merrymen.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/trader-exit &&
cp -R "$tmp/plugins/merrymen-trader/skills/trader-exit" ~/.claude/skills/trader-exit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/trader-exit` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/trader-exit` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Merrymen-Labs/merrymen.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/trader-exit &&
cp -R "$tmp/plugins/merrymen-trader/skills/trader-exit" ~/.agents/skills/trader-exit &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/trader-exit` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/trader-exit` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Merrymen-Labs/merrymen.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/trader-exit &&
cp -R "$tmp/plugins/merrymen-trader/skills/trader-exit" ~/.cursor/skills/trader-exit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/trader-exit` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/Merrymen-Labs/merrymen.git --path plugins/merrymen-trader/skills/trader-exit
```

Or copy the folder to `~/.gemini/skills/trader-exit` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/trader-exit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Merrymen-Labs/merrymen.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/trader-exit &&
cp -R "$tmp/plugins/merrymen-trader/skills/trader-exit" ~/.copilot/skills/trader-exit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/trader-exit` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Merrymen-Labs/merrymen.git
```

Then copy `merrymen/plugins/merrymen-trader/skills/trader-exit` into your agent's skills folder as `trader-exit`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It runs Python 3 scripts and reads the entry file produced by trader-entry, or a price you give. An ATR-based stop also needs the session's bars, fetched from Yahoo or loaded from a saved chart file.

### Does Trader exit place orders or size positions?

No. It sets the stop, target and flat-by time and writes them to a plan file. Position sizing is handled by a separate budget skill, and it never places orders.

### Does Trader exit support short trades?

No. The current version plans long trades only.

### What happens if the plan fails a check?

It refuses the plan and states the reason, such as a stop at or above entry or a stop too tight for the spread. It does not loosen the stop to make the plan pass.

### How do I install Trader exit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/trader-exit to use it in all your projects, or to .claude/skills/trader-exit in one project. Or install the merrymen-trader plugin, which includes it: /plugin marketplace add Merrymen-Labs/merrymen, then /plugin install merrymen-trader@merrymen.

### Does Trader exit run scripts?

Yes. It runs Python scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Trader exit?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Trader exit?

The closest alternatives to Trader exit are Trader timemachine, Trader alerts, Trader entry, Trader budget and Trader scanner.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Trader timemachine](https://ai-powered.com/skills/trader-timemachine): Trader timemachine is an open-source agent skill for finance and payments.
- [Trader alerts](https://ai-powered.com/skills/trader-alerts): Trader alerts is an open-source agent skill for finance and payments.
- [Trader entry](https://ai-powered.com/skills/trader-entry): Trader entry is an open-source agent skill for finance and payments.
- [Trader budget](https://ai-powered.com/skills/trader-budget): Trader budget is an open-source agent skill for finance and payments.
- [Trader scanner](https://ai-powered.com/skills/trader-scanner): Trader scanner is an open-source agent skill for finance and payments.
- [Trader risk](https://ai-powered.com/skills/trader-risk): Trader risk is an open-source agent skill for finance and payments.
- [Trader broker](https://ai-powered.com/skills/trader-broker): Trader broker is an open-source agent skill for finance and payments.

---
Source: https://ai-powered.com/skills/trader-exit
