
Trader exit
Sets a long trade's stop, profit target and flat-by time before you enter
Trader exit is an open-source agent skill for finance and payments. It is available on Claude Code.
- Scripts
- Python
- Platforms
- Claude Code
- GitHub stars
- 52
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Trader exit
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.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs Python scripts(see the files on GitHub)
- Network calls found in its scripts(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 2 files (37 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the merrymen-trader plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add Merrymen-Labs/merrymen
/plugin install merrymen-trader@merrymenOr copy only this skill to ~/.claude/skills/trader-exit:
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.
Copy the skill folder to ~/.agents/skills/trader-exit to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/trader-exit to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/Merrymen-Labs/merrymen.git --path plugins/merrymen-trader/skills/trader-exitOr copy the folder to ~/.gemini/skills/trader-exit yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/trader-exit:
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.
Get the folder:
git clone --depth 1 https://github.com/Merrymen-Labs/merrymen.gitThen 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.
What it does
- 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
Trader exit 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.
More from Merrymen-Labs/merrymen

Read-only health checks and change alerts for a shared Merrymen trading agent
- Open source
- 52 GitHub stars
- Developer tools

Connects hosted Merrymen trading agents to an MCP host and checks setup status
- Open source
- 52 GitHub stars
- Finance and payments

Sets price, stop, target and market-open alerts that ring once for a trade
- Open source
- 52 GitHub stars
- Finance and payments

Summarizes a company's SEC-filed earnings numbers quarter by quarter against last year
- Open source
- 52 GitHub stars
- Finance and payments

Turns a vetted stock-token order into a Merrymen trade proposal you approve
- Open source
- 52 GitHub stars
- Finance and payments

Sizes a day-trade stock token order to your max loss and agent limits
- Open source
- 52 GitHub stars
- Finance and payments


