strategy_trailing_stop_v2

Automate full position exits when prices fall below a configurable trailing stop threshold.

2|4|Updated Apr 27, 2026
One-click install
npx skills add https://github.com/khoks/ClaudeTrading --skill strategy-trailing-stop-v2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategy_trailing_stop_v2
Source: https://github.com/khoks/ClaudeTrading/tree/main/.claude/skills/strategy_trailing_stop_v2
Command: npx skills add https://github.com/khoks/ClaudeTrading --skill strategy-trailing-stop-v2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, and includes scripts (resource) components.

What problem does it solve?

Paper traders using automated systems waste time manually monitoring positions to sell before gains erode, and often miss optimal exit points during fast market moves.

Core Features & Use Cases

  • Peak watermark tracking: Automatically tracks the highest price of each held position and updates the stop level only when the price rises a configurable amount.
  • Configurable risk thresholds: Lets users set custom drop percentages to control how far prices can fall from the peak before triggering a full sell.
  • Use case: For ClaudeTrading users, this skill automatically exits positions during downtrends to preserve gains, without requiring constant manual oversight of stock prices.

Quick Start

Invoke the strategy_trailing_stop_v2 skill to automatically execute a full market sell for any position in your approved sellable set when its price falls below the configured trailing stop threshold.

Frequently Asked Questions about strategy_trailing_stop_v2

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate trailing stops for paper trading positions using the Alpaca API?

Automated trailing stops for Alpaca API paper trading track the peak high watermark of each held position and execute a full market sell when prices drop a user-configured percentage below that peak, preserving gains without manual monitoring.

Can I configure custom drop percentages for stock risk management exits?

Configurable risk thresholds let you set custom drop percentages to control exactly how far a stock price can fall from its tracked peak high before triggering a full position exit, ensuring tailored stock risk management.

How does peak watermark tracking work for automated trading position exits?

Peak watermark tracking records the highest price of each held position and updates the trailing stop level only when the price rises a configured amount, ensuring the stop follows upward momentum without manual intervention.

Does this automated trading strategy work with the ClaudeTrading master orchestration system?

Automated trading strategy execution targets US equity paper trading workflows integrated with the Alpaca paper trading API and the ClaudeTrading master trading orchestration system to enforce risk management rules automatically.

Do I need jq installed to use this automated trailing stop skill?

You need jq installed as a dependency to run the strategy scripts, which process Alpaca API paper trading data and execute market orders based on dynamic watermark tracking and drop thresholds.

When should I use a trailing stop strategy for stock risk management?

Use a trailing stop strategy during uptrends to automatically exit paper trading positions before gains erode, preventing missed optimal exit points during fast market moves without requiring constant manual oversight.