OpenParable
Skip to content
← Back to skills

Recipe Trailing Stop Runner

Apps & Automation
recipe-trailing-stop-runner

Recipe Trailing Stop Runner is an Agent Skill for apps & automation published in the krakenfx/kraken-cli repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Ride a trend with a trailing stop that locks in profits on reversal.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/krakenfx/kraken-cli/blob/HEAD/skills/recipe-trailing-stop-runner/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/recipe-trailing-stop-runner, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Trailing Stop Runner

PREREQUISITE: Load the following skills to execute this recipe: kraken-stop-take-profit, kraken-spot-execution

Enter a position and attach a trailing stop to capture trend profits while limiting downside.

Steps

  1. Get current price: kraken ticker BTCUSD -o json 2>/dev/null
  2. Enter position (requires human approval): kraken order buy BTCUSD 0.01 --type market -o json 2>/dev/null
  3. Verify fill: kraken trades-history -o json 2>/dev/null
  4. Set trailing stop (e.g., $500 trail distance): kraken order sell BTCUSD 0.01 --type trailing-stop --price +500 -o json 2>/dev/null
  5. Verify stop is placed: kraken open-orders -o json 2>/dev/null
  6. Monitor via stream: kraken ws ticker BTC/USD -o json 2>/dev/null
  7. When the trailing stop triggers, verify the exit fill: kraken trades-history -o json 2>/dev/null
  8. Report entry price, exit price, and net P&L