Logo: Breakout Planner

Breakout Planner

Communautéit
Shubhamkumartrichy
breakout-planner

Stage-2 breakout setups on NSE/BSE stocks: a trend-template check (rising 200 DMA, 50>150>200 stack, distance from 52-week high/low, relative strength vs NIFTY), base detection (volatility contraction with successively tighter pullbacks, or a flat base) with pivot, depth, duration, volume dry-up and a grade, then an order-ready plan: trigger, chase limit, capped stop, size, Indian charges, R targets, GTT/SL templates, circuit-band and NSE tick-size checks. breakout.py scans a folder of CSVs or yfinance symbols and ranks them, offline-capable. Use when the user asks: "is X in a Stage 2 uptrend", "find VCP setups", "where is the pivot on X", "plan a breakout trade in X", "breakout buy point and stop", "scan these stocks for breakouts", "Minervini trend template for NSE stocks", "how do I place a GTT for a breakout", or any question about buying stocks as they clear a base.

Iwwersiicht

EditeurShubhamkumartrichy
Repositoryclaude-trading-skills-india
Skill-Nummbreakout-planner
Stären
57
Forks
11
Matgeliwwert Dateien
1
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Shubhamkumartrichy huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Breakout Planner an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Shubhamkumartrichy/claude-trading-skills-india/tree/main/skills/breakout-planner
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Shubhamkumartrichy/claude-trading-skills-india.git /tmp/claude-trading-skills-india
mkdir -p .claude/skills
cp -r /tmp/claude-trading-skills-india/skills/breakout-planner .claude/skills/breakout-planner
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Breakout Planner an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Breakout Planner automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Breakout Planner net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Breakout Planner (NSE/BSE)

Buy strength only where three things line up: a stock already in a Stage-2 uptrend, a tight base whose pullbacks shrink as supply dries up, and a pivot you can define to the tick. The script does the detection and arithmetic. You add regime, news and judgement.

Commands

bash
# One stock: trend template + liquidity + base + pivot (add a NIFTY CSV for relative strength)
python3 scripts/breakout.py check --csv polycab.csv --benchmark-csv nifty.csv
python3 scripts/breakout.py check --symbol POLYCAB --benchmark NIFTY          # yfinance
# Plan from the chart (pivot, last low and ATR are read from the data)
python3 scripts/breakout.py plan --csv polycab.csv --capital 1000000 --risk-pct 1 --band 0
# Plan from numbers you already have (no data needed)
python3 scripts/breakout.py plan --pivot 1520 --contraction-low 1462 --prev-close 1498 \
    --capital 500000 --band 10 --segment mtf --leverage 2 --broker zerodha
# Rank many: one CSV per symbol (file name = symbol), or a yfinance list
python3 scripts/breakout.py scan --csv-dir data/ --benchmark-csv data/nifty.csv --top 15
python3 scripts/breakout.py scan --symbols DIXON,KAYNES,TRENT,POLYCAB --benchmark NIFTY

Inputs follow technical-analysis: --csv, --candles (broker-MCP JSON) or --symbol. Use 260+ daily bars. Every command takes --json. Bad input exits 2 with a one-line error.

Reading check

Trend template (all must pass for "Stage 2"): close above SMA50/150/200; SMA50 > SMA150 > SMA200; SMA200 higher than 22 sessions ago; within 25% of the 52-week high; at least 30% above the 52-week low; with a benchmark, beating it over both 3 and 6 months. Use NIFTY for large caps and NIFTY Midcap/Smallcap or the sector index for the rest. Five of six is "watch", not "buy".

Base. The base starts at the highest high of the last 150 bars. Swings are traced with a threshold of max(3%, 1.25 × ATR%). A bounce that fails into a lower low stays part of the same pullback; a small dip on the way to a higher high is ignored.

  • VCP: 2+ pullbacks, each shallower than the previous (≤0.85x), last one ≤15% (ideally ≤6%), first ≤50%. Pivot = high of the last pullback.
  • Flat base: whole base ≤15% deep and 5+ weeks long when the pullbacks don't tighten. Pivot = base high.
  • Loose/unclassified: neither. Grade D. Wait for a proper base.
  • Volume dry-up = volume in the last pullback ÷ the 50 bars before it. Below 0.6 is strong; above 1.0 means supply.
  • Grade A ≥80, B ≥60, C ≥40, D below. State: pre-breakout, breakout zone (≤ chase above pivot), extended, deep below pivot, or failed (closed under the last low).
  • Cup-with-handle is not detected separately. Most read as a VCP or loose base, so confirm on the chart.

Reading plan

ItemRule (defaults)
Triggerpivot + 0.2%, rounded up to the tick
Chase limitpivot + 3% (--max-chase-pct; warns above 5%). Size is computed at this worst fill
Stoplast contraction low − 1% (--stop-method atr = trigger − 2×ATR), capped at 8% below the limit
Sizeposition-sizing logic (risk.py): risk % of capital incl. costs, 20% single-stock cap; MTF divides the risk budget by the leverage
Chargestrading-costs (charges.py) round trip at the stop and at each target, delivery or MTF with interest
Targets2R and 3R from the worst fill (--targets 2,3,5)

A capped stop sits inside the base, so the base is too loose for your chase. Prefer to skip it or buy closer to the pivot.

India specifics

  • Order types. Exchange stop orders (SL / SL-M) are DAY-only and lapse at 15:30, and the pre-open session takes no stop orders. For a multi-day wait use a broker GTT (trigger = entry trigger, limit = chase limit). After the fill, protect it with a GTT OCO (stop + target). Shares settle T+1, so on the buy day some brokers need a DAY SL-sell until the shares show in holdings.
  • Tick size follows NSE slabs effective 15-Apr-2025: below ₹250 ₹0.01; ₹250–1,000 ₹0.05; ₹1,000–5,000 ₹0.10; ₹5,000–10,000 ₹0.50; ₹10,000–20,000 ₹1; above ₹20,000 ₹5. NSE reassigns slabs monthly from a reference close, and BSE can differ, so pass --tick if the broker rejects a price.
  • Circuit bands. --band 2|5|10|20 with --prev-close (taken from the data's last close) warns when the trigger or chase limit is beyond today's upper circuit. 2%/5% bands mark surveillance, SME or illiquid names, where breakouts lock at the upper circuit and exits lock at the lower one. F&O stocks have no fixed circuit (--band 0): the exchange widens their dynamic band in steps.
  • Surveillance. ASM/GSM stocks and trade-for-trade (BE/T2T) stocks have no intraday or BTST, need 100% upfront payment and usually can't be funded with MTF. Check NSE's lists or pass --surveillance asm|gsm|t2t.
  • Liquidity. The default floor is ₹5 crore average daily traded value (--min-turnover-cr). Scans push illiquid names to the bottom. Skip SME and operator-style stocks: a vertical base on rising volume with no news or delivery is a red flag.
  • Delivery % on the breakout day should match or beat its recent average (NSE security-wise delivery data). A high-volume breakout on low delivery is mostly intraday churn.
  • Results season. A pivot within ~5 sessions of quarterly results is a coin toss with a 5–15% gap. Wait for the number or size down. The plan reports the worst 60-bar gap-down and sizes the gap-through loss for it.

Workflow

  1. Run ../market-regime/scripts/regime.py status first (see market-regime). Take new breakouts only when the regime allows long exposure, and respect its position cap.
  2. Run scan on the watchlist, then check the top names and confirm the base on the chart (technical-analysis, multi-timeframe-analysis).
  3. Run plan for actionable names. Cross-check the stop with stop-loss-strategies and the size with position-sizing.
  4. After entry, hand trade management to trailing-stops: breakeven at 1R, trail from 2R. Exit fast if price closes back under the pivot on heavy volume within a few sessions.

Output

SYMBOL — date, close | trend 6/6 | base VCP A | pre-breakout (−2.1% vs pivot)
T1 20% → T2 10% → T3 5% | dry-up 0.40x | pivot ₹P | last low ₹L
Trigger ₹T | chase ≤ ₹C | stop ₹S (x% , capped?) | qty N (₹value, y% of capital) | risk ₹R
Targets 2R ₹.. / 3R ₹.. (net of charges) | band check | tick
Orders: GTT buy (trigger/limit) → GTT OCO (stop/target); DAY SL alternative
Checklist: regime, surveillance, results date, delivery %, liquidity

Educational analysis, not investment advice.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Breakout Planner?

Stage-2 breakout setups on NSE/BSE stocks: a trend-template check (rising 200 DMA, 50>150>200 stack, distance from 52-week high/low, relative strength vs NIFTY), base detection (volatility contraction with successively tighter pullbacks, or a flat base) with pivot, depth, duration, volume dry-up and a grade, then an order-ready plan: trigger, chase limit, capped stop, size, Indian charges, R targets, GTT/SL templates, circuit-band and NSE tick-size checks. breakout.py scans a folder of CSVs or yfinance symbols and ranks them, offline-capable. Use when the user asks: "is X in a Stage 2 uptre...

Firwat Breakout Planner op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Breakout Planner besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Breakout Planner an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Shubhamkumartrichy/claude-trading-skills-india/tree/main/skills/breakout-planner an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Breakout Planner benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Breakout Planner benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Breakout Planner domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Breakout Planner gratis?

Jo. Shubhamkumartrichy huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇