Install
$ agentstack add skill-ske-labs-agent-trading-skills-trailing-stop ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Trailing Stop Strategies
Trailing stops lock in profits while allowing trades to run.
Trailing Methods
1. ATR Trail (Recommended)
Trailing Stop = Highest High - (ATR x 2). Adjusts to volatility -- tighter in calm markets, wider in volatile markets.
2. Structure Trail
Move stop below each new swing low (long) or above each new swing high (short). Lets the trade breathe while locking in structure.
3. Moving Average Trail
Use MA as trailing stop (common: 10 EMA, 20 EMA). Exit when price closes below MA.
4. Chandelier Exit
Trail from highest high by ATR multiple. Classic exit strategy, good for trending markets.
5. Fixed Distance Trail
Move stop by fixed amount (pips/%). Simple but can be too static -- prefer ATR or structure.
When to Start Trailing
| Trigger | Strategy | | ------------------- | ------------ | | After 1R profit | Conservative | | After 2R profit | Moderate | | New structure break | Dynamic | | Immediately | Aggressive |
Hybrid Approach
Combine methods for staged exit management:
- Fixed initial stop
- Move to breakeven at 1R
- Trail by structure after 2R
- Tight ATR trail near target
Exit Scenarios
| Price Action | Trailing Action | | --------------- | ----------------- | | New high/low | Move stop up/down | | Consolidation | Keep stop same | | Reversal candle | Tighten trail | | Structure break | Consider exiting |
Workflow
Example -- Long trade at $100, stop at $95:
- Price hits $108 (1.5R) -> Move stop to $100 (breakeven)
- Price hits $115 (3R) -> Trail to $110 (below last swing)
- Price hits $120 -> Trail to $115
- Price pulls back -> Stop hit at $115 (3R locked)
Key Rules
- NEVER trail too tightly -- noise will stop you out prematurely
- NEVER trail against trend structure -- only move stops in the profit direction
- NEVER override your trailing rules during a trade -- define them before entry
- NEVER manually exit before your trailing stop is hit unless structure clearly breaks
- Pre-define trailing rules before entering the trade
- Allow some drawdown from highs -- that is the cost of catching extended moves
Related Skills
- stop-loss-strategies -- initial stop placement determines when trailing begins
- partial-profit-taking -- combine trailing stops with partial exits for optimal capture
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: SKE-Labs
- Source: SKE-Labs/agent-trading-skills
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.