Recipe Trailing Stop Runner
Apps & Automationrecipe-trailing-stop-runnerRecipe 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.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- 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
- Get current price:
kraken ticker BTCUSD -o json 2>/dev/null - Enter position (requires human approval):
kraken order buy BTCUSD 0.01 --type market -o json 2>/dev/null - Verify fill:
kraken trades-history -o json 2>/dev/null - Set trailing stop (e.g., $500 trail distance):
kraken order sell BTCUSD 0.01 --type trailing-stop --price +500 -o json 2>/dev/null - Verify stop is placed:
kraken open-orders -o json 2>/dev/null - Monitor via stream:
kraken ws ticker BTC/USD -o json 2>/dev/null - When the trailing stop triggers, verify the exit fill:
kraken trades-history -o json 2>/dev/null - Report entry price, exit price, and net P&L