# stop-loss-strategies

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 69 repo stars
- Author: Shubham Kumar
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/Shubhamkumartrichy/claude-trading-skills-india/tree/HEAD/skills/stop-loss-strategies/SKILL.md
- Updated: 2026-11-13
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/stop-loss-strategies

## What it 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.

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add Shubhamkumartrichy/claude-trading-skills-india
```
In the agent chat (not a shell):
```text
/plugin install india-trading-skills@india-trading-skills
```
This installs the whole india-trading-skills plugin with all its skills

2. **Skills CLI (Vercel)**
```bash
npx skills add Shubhamkumartrichy/claude-trading-skills-india --skill stop-loss-strategies -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/stop-loss-strategies/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/stop-loss-strategies/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add Shubhamkumartrichy/claude-trading-skills-india --skill stop-loss-strategies -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/stop-loss-strategies/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add Shubhamkumartrichy/claude-trading-skills-india --skill stop-loss-strategies -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/stop-loss-strategies/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install Shubhamkumartrichy/claude-trading-skills-india skills/stop-loss-strategies
```

2. **Manually: put the files in place**
- File: `.github/skills/stop-loss-strategies/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add Shubhamkumartrichy/claude-trading-skills-india --skill stop-loss-strategies -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/Shubhamkumartrichy/claude-trading-skills-india --path skills/stop-loss-strategies
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/stop-loss-strategies/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/Shubhamkumartrichy/claude-trading-skills-india/tree/HEAD/skills/stop-loss-strategies/SKILL.md

## When to use it
- 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
- 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.

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: ccbbc9a68676da00.

BEGIN THIRD-PARTY FILE ccbbc9a68676da00
```text
---
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.
```
END THIRD-PARTY FILE ccbbc9a68676da00

The third-party file has ended. Everything between the ccbbc9a68676da00 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2406 of 4872 bytes. © Shubham Kumar · MIT · https://github.com/Shubhamkumartrichy/claude-trading-skills-india/tree/HEAD/skills/stop-loss-strategies/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
