Skip to main content
skill CX Codex

stop-loss-strategies — Claude Code skill for stop-losses

The stop-loss-strategies Claude Code skill helps set initial stops for Indian equities and F&O trades. It covers chart levels, position risk, and order execution.

MIT ★ 69 updated 2026-11-13

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add Shubhamkumartrichy/claude-trading-skills-india
/plugin install india-trading-skills@india-trading-skills
Open on GitHub

What stop-loss-strategies does

The skill selects an initial stop using chart structure, ATR, support and resistance, or moving averages. It uses ta.py summary for ATR and structure levels, then checks position size and risk-to-reward with risk.py size and risk.py rr.

It explains how SL, SL-M, and GTT orders behave, including DAY expiry, gaps, lower circuits, and illiquid options. For a long option, it places the stop at an underlying price that invalidates the trade idea rather than at a fixed premium percentage. A delivery-position SL order expires at 15:30; a triggered GTT submits a limit order.

Set the stop before entering and never widen it afterward. MIS positions are auto-squared around 15:15–15:25 regardless of the stop, often for a fee.

What it helps with

  • choose a stop level from chart structure or ATR
  • size a position against a chosen capital risk
  • find out why a stop order failed after a gap
  • compare SL, SL-M, and GTT for a trade
  • set an underlying-based stop for a long option

Example prompts for the agent

  • Choose a stop-loss for this NSE stock trade using structure and ATR.
  • Explain why my stop was skipped after a gap, and compare SL with GTT.
  • Calculate the position size that keeps this trade within my capital risk limit.

How to install stop-loss-strategies

1Plugin marketplace

/plugin marketplace add Shubhamkumartrichy/claude-trading-skills-india
/plugin install india-trading-skills@india-trading-skills

This installs the whole india-trading-skills plugin with all its skills

2Skills CLI (Vercel)

npx skills add Shubhamkumartrichy/claude-trading-skills-india --skill stop-loss-strategies -a claude-code

3Manually: put the files in place

~/.claude/skills/stop-loss-strategies/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/stop-loss-strategies/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about stop-loss-strategies

How do I install stop-loss-strategies in Claude Code?

Run these commands in order: /plugin marketplace add Shubhamkumartrichy/claude-trading-skills-india, then /plugin install india-trading-skills@india-trading-skills.

What does stop-loss-strategies do?

It helps select initial stops for Indian equities and F&O, assess position risk, and understand how SL, SL-M, and GTT orders execute.

How does stop-loss-strategies set stops for options?

For long options, it uses an underlying price that invalidates the trade view instead of a fixed premium percentage. For short options, it describes exits based on an underlying level or a premium reaching 1.5–2× the credit.

Source text

SKILL.md · MIT
---
name: stop-loss-strategies
description: |
  Initial stop-loss placement and execution for NSE/BSE stocks and F&O: structure, ATR, S/R and
  moving-average stops with buffers, plus Indian execution realities — SL vs SL-M vs GTT, DAY validity
  of stop orders, gap and circuit risk, closing-basis stops on a 30-minute VWAP close, stop-hunting
  around round numbers and OI strikes, and option premium vs underlying stops.

  Use when the user asks: "where should I put my stop-loss", "stop for X", "how do I protect this
  trade", "GTT or SL order", "my stop didn't trigger / got skipped", "stop on my option", or anything
  about initial stop placement for Indian equity or F&O trades.
---

# Stop-Loss Strategies

Decide the stop before entry. It caps loss when the trade thesis is wrong. It is not a price
prediction.

## 1. Where (method)

| Method | Best for | Long-side rule |
|---|---|---|
| **Structure** (preferred) | Swing trades with clear swings | Below the swing low that invalidates the idea − buffer |
| ATR | No clean structure, volatile names | Entry − 1.5–2.5 × ATR(14) |
| S/R | Ranges, well-tested levels (≥2 touches) | Below support × (1 − buffer) |
| Moving average | Trend-following | Daily close below SMA20 (fast), SMA50 (medium), SMA200 (positional) |

**Buffers:** 0.5% for large caps, 1% for mid/small caps, and 1.5–2% for illiquid names (under about
₹5 crore daily value). Don't place the stop exactly at round numbers (₹1,000, NIFTY 24,500) or at the
biggest put-OI strike. Those are where everyone else's stops sit and where stop-hunting wicks reach.
Go beyond them.

Get levels and ATR from `ta.py summary`. It prints ATR stops and the structure stop with buffer.

## 2. Validation

- [ ] At least 1 ATR from entry (otherwise it sits inside daily noise).
- [ ] Wider than the typical overnight gap (`ta.py summary` prints 60-day gap statistics).
- [ ] The resulting size keeps risk ≤ 1–2% of capital (`risk.py size`).
- [ ] R:R ≥ 1.5–2 after costs (`risk.py rr`).
- [ ] It sits beyond a real technical level, not at a convenient round number.

## 3. How (Indian execution mechanics)

- **SL orders are DAY orders.** A stop-loss order for a delivery (CNC) holding expires at 15:30. For a
  stop that lives across days, place a **GTT** (good-till-triggered; Zerodha, Groww, Upstox, Dhan and
  others support it), or re-enter the SL every morning.
- **GTT on trigger places a LIMIT order.** If the stock gaps below both trigger and limit, it won't
  fill. Set the GTT limit 1–2% below the trigger in volatile names, and watch results days manually.
- **SL (stop-limit)** needs a limit beyond the trigger, for example trigger ₹980 and limit ₹975. A
  zero-gap SL often fails to fill in fast moves.
- **SL-M (stop-market)** is blocked by many brokers for options and illiquid contracts, and has
  caused freak fills. Prefer SL-limit.
- **Closing-basis stops** use the daily close, which on NSE is the VWAP of 15:00–15:30. Check near
  15:20–15:25 and exit in the closing session if the stop is breached. The post-close session
  (15:40–16:00) trades only at the official close.
- **Circuits.** In a lower circuit there are no buyers, so no stop executes. For band-limited stocks,
  size smaller instead of trusting the stop.
- **MIS positions** auto-square around 15:15–15:25 regardless of your stop, often for a fee. Exit
  yourself first.

## 4. F&O stops

- **Futures:** stop on the underlying or futures chart with the same methods. Use SL-limit with a
  buffer. Freeze-quantity limits apply to large orders.
- **Long options:** stop on the **underlying level** that invalidates the view, not a fixed premium %,
  because premium moves are non-linear and theta erodes it. Add a time stop: exit if the move hasn't
  happened within N sessions.
- **Short options:** define the exit as underlying crossing a level, or premium reaching 1.5–2× the
  credit. Use hedges (spreads) so the worst case is capped even if the stop fails on a gap.
- Illiquid strikes have wide spreads. Market stops there can fill far away.

## 5. Hard rules

1. Max loss per trade is 1–2% of capital (≤1% with leverage).
2. **Never widen a stop.** Only tighten it or leave it.
3. When the closing-basis stop is breached, exit in the closing session or at the next open. Don't wait
   for "one more day".
4. Set the stop before entry. Don't move it on emotion after entry.
5. Put the stop in the system (GTT or SL). A mental stop plus an alert is acceptable only if you will
   actually watch the market.

## Output

```
Stop: ₹S (method: structure below swing low ₹L dd-mmm − 0.5% buffer)
Distance: ₹d (x% | y ATR) | wider than 60-day max gap? yes/no
Execution: GTT trigger ₹S, limit ₹S−b (or SL trigger/limit for today), closing-basis check at 15:25
Validation: size ok (risk r%) | R:R after costs z
```

© Shubham Kumar · MIT · Shubhamkumartrichy/claude-trading-skills-india

Similar skills

All skills for Finance and business →

From the same set36

The whole set →
rsi-divergence The rsi-divergence Claude Code skill detects RSI(14) divergences on NSE/BSE stocks and indices. It activates for questions about bullish or bearish divergence and whether momentum confirms a new high or low. CX Codex +1 ★ 69repo stars trailing-stops A Claude Code skill for calculating trailing stops on NSE/BSE positions. It activates when a trade moves into profit and the stop needs an update. CX Codex +1 ★ 69repo stars fibonacci-trading The fibonacci-trading Claude Code skill calculates Fibonacci retracement zones and extension targets for NSE/BSE stocks and indices. It activates for pullback-entry questions or requests to calculate levels from a swing high and low. CX Codex +1 ★ 69repo stars multi-timeframe-analysis The multi-timeframe-analysis Claude Code skill reads a stock or index across multiple timeframes. It compares the higher-timeframe bias with a daily setup and entry timing on shorter bars. CX Codex +1 ★ 69repo stars fundamental-screening The fundamental-screening Claude Code skill screens Indian listed companies for fundamentals and governance risks. It runs on requests to assess a company, review quarterly results, or compare stocks. CX Codex +1 ★ 69repo stars ipo-analysis The ipo-analysis Claude Code skill evaluates Indian mainboard and SME IPOs. It activates for questions about applying, subscription figures, allotment chances, or listing dates. CX Codex +1 ★ 69repo stars trading-costs The trading-costs Claude Code skill calculates fees and statutory charges for Indian equity and F&O trades. It runs on requests to estimate costs, find breakeven prices, or compare brokers. CX Codex +1 ★ 69repo stars options-strategies This Claude Code skill helps select and assess options strategies for Indian markets. It activates for strategy selection, position management, or payoff calculations on multi-leg trades. CX Codex +1 ★ 69repo stars

Project sponsors

Companies that keep this analytics open