trailing-stops
Skill36 starsChanged 8 months agoMITView on GitHub
Trailing stop strategies to lock in profits on NSE/BSE equity positions. Covers ATR trail, structure trail, MA trail, chandelier exit, and the recommended hybrid approach.
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
No dependencies required. Provide entry, current price, and ATR manually.
- Distinctive: line 66
Use closing price vs MA — if daily close is below the MA, exit next day.
- Distinctive: line 80
Don't overtighten: If you're trailing too tight, you'll get stopped out on normal pullbacks.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Trailing Stops
Once a trade is profitable, trailing stops protect your gains while letting winners run.
Prerequisites
No dependencies required. Provide entry, current price, and ATR manually. Enhanced with Groww MCP (live ATR, candles, MAs) or yfinance.
Data Needed
- Entry price and current price: Known or from
get_quotes_and_depth - ATR(14):
get_historical_technical_indicatorsfrom Groww, or user-provided - Recent swing lows/highs:
fetch_historical_candle_data(daily) - Moving averages: SMA20, EMA50 from indicators
- Initial risk (1R): Entry - original stop-loss
The Hybrid Approach (Recommended)
This progressive system adapts as the trade matures:
| Trade Stage | Profit Level | Trailing Method |
| Just entered | 0 to 1R | Fixed stop — don't trail yet, use initial stop-loss |
| Early profit | 1R gained | Move to breakeven — stop at entry price (eliminates risk) |
| Building profit | 2R gained | ATR trail — highest close minus ATR(14) × 1.5 |
| Strong runner | 3R+ gained | Structure trail — below most recent swing low |
This works because:
- Below 1R: Moving stop too early gets you shaken out on noise
- At 1R: Breakeven means you can't lose money — psychological freedom to hold
- At 2R: ATR trail gives the stock room to breathe while protecting most profit
- At 3R+: Structure trail is tighter, appropriate when you have a large cushion
Individual Methods
ATR Trail
Trailing stop = Highest close since entry - ATR(14) × multiplier
Multiplier: 1.5 (tight), 2.0 (standard), 3.0 (loose)Recalculate daily at market close. Only move stop up, never down.
Structure Trail
Trailing stop = Below the most recent higher lowIdentify swing lows on the daily chart. Each new higher low becomes the new stop reference. Best for stocks making clear stair-step patterns.
Moving Average Trail
Aggressive: Trail below SMA20 (for fast trends)
Moderate: Trail below EMA50 (for steady trends)
Conservative: Trail below SMA200 (for long-term holds)Use closing price vs MA — if daily close is below the MA, exit next day.
Chandelier Exit
Trailing stop = Highest high since entry - ATR(14) × 3.0More aggressive than standard ATR trail. Good for volatile runners where you want to ride big swings.
Trailing Stop Rules
- Only move up, never down — a trailing stop is a ratchet
- Check daily at market close — don't adjust intraday (noise)
- Use closing prices for triggers — ignore intraday wicks
- When stop is hit: exit at next day's open, no exceptions
- Don't overtighten: If you're trailing too tight, you'll get stopped out on normal pullbacks. Give the stock room proportional to its ATR.
Choosing Your Method
| Stock Behavior | Best Trail Method |
| Strong uptrend, clear swing lows | Structure trail |
| Trending but volatile | ATR trail (2.0×) or Chandelier |
| Steady grinder, low volatility | MA trail (EMA50) |
| Explosive mover, unsure of top | Chandelier exit (3.0× ATR) |
| Long-term investment | MA trail (SMA200) |
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Shubhamkumartrichy/claude-trading-skills-india★ 7same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- fibonacci-tradingSkill
- multi-timeframe-analysisSkill
- nse-trading-toolkitSkill
- position-sizingSkill
- risk-reward-ratioSkill
- rsi-divergenceSkill
- stop-loss-strategiesSkill
- technical-analysisSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

