Skip to content
Skills Library
Finance & accounting · Analysis

trader-in-scanner

/trader-in-scanner

Chart Scanner for Indian stocks. Scans hundreds of NSE (or BSE) charts for setups: opening-range breakouts, flags, oversold bounces. Builds the list from NSE's own files (Nifty 50, Nifty 100, Nifty 200, Nifty 500, or every NSE equity in series EQ), caches it for the day with ISIN, industry and company name at trader-in/universe.json, runs a pre-market scan of daily closes (20-day closing-high breakout, bull flag, reclaimed the 20-day average, oversold, oversold bounce) and an intraday opening-range breakout scan on 5-minute bars of the 09:15 to 15:30 IST session, then writes trader-in/watchlis

Licence
MIT
Last repository change
27.10.2026

Assessment and security

87/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability17 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
1
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scan.py

What it does and when to use it

Chart Scanner for Indian stocks. Scans hundreds of NSE (or BSE) charts for setups: opening-range breakouts, flags, oversold bounces. Builds the list from NSE's own files (Nifty 50, Nifty 100, Nifty 200, Nifty 500, or every NSE equity in series EQ), caches it for the day with ISIN, industry and company name at trader-in/universe.json, runs a pre-market scan of daily closes (20-day closing-high breakout, bull flag, reclaimed the 20-day average, oversold, oversold bounce) and an intraday opening-range breakout scan on 5-minute bars of the 09:15 to 15:30 IST session, then writes trader-in/watchlis

Arguments

/trader-in-scanner [universe | daily | orb] [--universe nifty50|nifty100|nifty200|nifty500|all] [--at HH:MM]
Original author description

Chart Scanner for Indian stocks. Scans hundreds of NSE (or BSE) charts for setups: opening-range breakouts, flags, oversold bounces. Builds the list from NSE's own files (Nifty 50, Nifty 100, Nifty 200, Nifty 500, or every NSE equity in series EQ), caches it for the day with ISIN, industry and company name at trader-in/universe.json, runs a pre-market scan of daily closes (20-day closing-high breakout, bull flag, reclaimed the 20-day average, oversold, oversold bounce) and an intraday opening-range breakout scan on 5-minute bars of the 09:15 to 15:30 IST session, then writes trader-in/watchlis

How it works

  1. Symbols
  2. What it reads and writes
  3. The universe
  4. The daily scan (before the open)
  5. The opening-range breakout scan (during the session)
  6. Calendar
  7. Data and limits
  8. Steps
  9. Example: Tue Oct 27 2026
  10. Rules
Original SKILL.md headings · 268 lines, 2,431 words
SKILL.md preview
---
name: trader-in-scanner
description: >-
  Chart Scanner for Indian stocks. Scans hundreds of NSE (or BSE) charts for
  setups: opening-range breakouts, flags, oversold bounces. Builds the list
  from NSE's own files (Nifty 50, Nifty 100, Nifty 200, Nifty 500, or every
  NSE equity in series EQ), caches it for the day with ISIN, industry and
  company name at trader-in/universe.json, runs a pre-market scan of daily
  closes (20-day closing-high breakout, bull flag, reclaimed the 20-day
  average, oversold, oversold bounce) and an intraday opening-range breakout
  scan on 5-minute bars of the 09:15 to 15:30 IST session, then writes
  trader-in/watchlist.json for trader-in-news and trader-in-entry. Free
  Yahoo data, bar by bar, prices in ₹. Use when the user says "scan the
  market", "scan Nifty 500", "find me setups in Indian stocks", "what is
  breaking out on NSE", "opening range breakouts", "ORB scan", "scan for bull
  flags", "oversold Nifty stocks", "pre-market scan", "build my watchlist",
  "what should I look at today", or at the start of an Indian trading day
  before /trader-in-news.
argument-hint: "[universe | daily | orb] [--universe nifty50|nifty100|nifty200|nifty500|all] [--at HH:MM]"
---

# trader-in-scanner

The Chart Scanner is the first step of a day trade on NSE. It reads hundreds
of free charts and lists the ones that match a rule. That is all it does. A
scan is a list of charts that match a rule, not a list of stocks to buy, and
a setup on a chart is not a prediction. SEBI's own study found that 7 in 10
individual intraday traders in equity cash lost money in FY 2022-23; the scanner does not
change that. It only saves you from flipping through 500 charts by hand.

`${CLAUDE_SKILL_DIR}` below is this skill's folder (where this SKILL.md lives).

```bash
python3 "${CLAUDE_SKILL_DIR}/scan.py" universe                          # Nifty 500 -> trader-in/universe.json
python3 "${CLAUDE_SKILL_DIR}/scan.py" universe --universe all           # every NSE equity, series EQ (--include-be adds BE)
python3 "${CLAUDE_SKILL_DIR}/scan.py" daily                             # before 09:15 IST -> trader-in/watchlist.json
python3 "${CLAUDE_SKILL_DIR}/scan.py" daily --universe nifty50          # or --symbols RELIANCE,TCS,M&M, --watchlist FILE, --limit 200
python3 "${CLAUDE_SKILL_DIR}/scan.py" orb                               # after 09:35 IST -> trader-in/watchlist.json
python3 "${CLAUDE_SKILL_DIR}/scan.py" orb --at 10:15                    # cut the clock at 10:15 IST
python3 "${CLAUDE_SKILL_DIR}/scan.py" orb --watchlist trader-in/watchlist.json --json
python3 "${CLAUDE_SKILL_DIR}/scan.py" daily --symbols TCS,INFY --exchange BSE   # .BO charts instead of .NS
```

Flags: `--universe nifty50|nifty100|nifty200|nifty500|all` (default: config
`universe`, else `nifty500`), `--exchange NSE|BSE` (default: config
`default_exchange`, else NSE), `--include-be` (with `all`), `--min-price 20`
(₹) and `--min-volume` (shares: daily 1,00,000, orb 0), `--or-minutes 15`,
`--max-confirm 200` (orb stage 2), `--now "2026-10-27 10:15"` (IST; a bare
`10:15` is today in IST; `...Z` or `+05:30` is absolute) to pin the clock,
`--offline PATH` to read saved files, `--no-write`, `--show N`, `--json`,
`--config trader-in/config.json`. Exit code 0 when the scan found something,
1 when it found nothing or could not run (the reason is one plain line).

## Symbols

Files always hold Yahoo's form: `RELIANCE.NS` (NSE) or `RELIANCE.BO` /
`500325.BO` (BSE). On input, any of `RELIANCE`, `RELIANCE.NS`, `NSE:RELIANCE`,
`RELIANCE.BO`, `BSE:RELIANCE`, `500325.BO`, `BSE:500325` works,
case-insensitive. A bare symbol goes to `--exchange` (else config
`default_exchange`, else NSE); a bare six-digit number is a BSE scrip code.
Symbols like `M&M`, `BAJAJ-AUTO` and `3MINDIA` are fine (`M&M.NS` is sent to
Yahoo as `M%26M.NS`). Indices (`^NSEI`, `^NSEBANK`, `^BSESN`) are not
scanned.

## What it reads and writes

| file | what |
| --- | --- |
| `trader-in/universe.json` | written by `universe`, and by `daily` / `orb` when the cache is not today's: the day's symbol list with ISIN, industry and name (below). trader-in-broker reads the ISIN from it |
| `trader-in/watchlist.json` | written by `daily` and `orb`: `created_by` (`trader-in-scanner`), `mode`, `as_of`, `universe` (count), `universe_list`, `scanned`, `failed`, `currency` (`INR`), `hits[]`. trader-in-news and trader-in-entry read `hits[].symbol` (always the `.NS` / `.BO` form) |
| `trader-in/config.json` | read: `universe`, `default_exchange`, `no_entries_after` (default 14:45), `extra_holidays`, `special_sessions` |

### `trader-in/universe.json`

```json
{
  "created_by": "trader-in-scanner",
  "created_at": "2026-10-27T10:42:36Z",
  "date": "2026-10-27",
  "list": "nifty500",
  "exchange": "NSE",
  "include_be": false,
  "source": "https://archives.nseindia.com/content/indices/ind_nifty500list.csv",
  "count": 500,
  "rows": 501,
  "dropped": {"placeholder": 1},
  "symbols": [
    {"symbol": "M&M.NS", "tradingsymbol": "M&M", "exchange": "NSE",
     "name": "Mahindra & Mahindra Ltd.", "industry": "Automobile and Auto Components",
     "series": "EQ", "isin": "INE101A01026"}
  ]
}
```

| field | meaning |
| --- | --- |
| `date` | the IST date it was built: the cache key. Same `date`, `list`, `exchange` and `include_be` = reused, no download |
| `list` | `nifty50`, `nifty100`, `nifty200`, `nifty500` or `all` |
| `exchange` | `NSE` (`.NS` tickers) or `BSE` (`.BO` tickers for the same symbols) |
| `source` | the NSE file it came from |
| `count` / `rows` / `dropped` | kept, read, and why the rest went (`series BE`, `series BZ`, `placeholder`, `not a plain symbol`) |
| `symbols[].symbol` | canonical Yahoo form, `RELIANCE.NS` / `RELIANCE.BO` |
| `symbols[].tradingsymbol` | the exchange's trading symbol, no suffix (`M&M`) |
| `symbols[].exchange` | `NSE` or `BSE` |
| `symbols[].name` | company name as NSE writes it |
| `symbols[].industry` | NSE's industry from the index list; for `all`, filled from the Nifty 500 list (null for the rest) |
| `symbols[].series` | `EQ` (or `BE` with `--include-be`) |
| `symbols[].isin` | ISIN (`INE...`), the same on NSE and BSE: what Upstox instrument keys and most broker APIs need |
| `notes` | optional: anything that could not be read (an industry list that failed) |

Other skills: find a row by `symbol` (or `tradingsymbol` + `exchange`) and read
`isin`. A symbol not in the file (a `--symbols` scan outside the list) has no
row: look it up again in NSE's EQUITY_L.csv.

## The universe

- `nifty50`, `nifty100`, `nifty200`, `nifty500`: NSE's index constituent lists,
  `archives.nseindia.com/content/indices/ind_<list>list.csv` (Company Name,
  Industry, Symbol, Series, ISIN Code). On Oct 27 2026: 50, 100, 200 and 500.
  The Nifty 500 file had 501 rows: NSE parks a `DUMMYHEG` placeholder row
  (ISIN `DUM545A01024`) around a demerger. Placeholders are dropped.
- `all`: `archives.nseindia.com/content/equities/EQUITY_L.csv`, every NSE
  equity, kept when SERIES is `EQ` (rolling settlement, intraday allowed);
  `--include-be` also keeps `BE` (trade-for-trade: delivery only, no intraday
  square-off, so an ORB on it is not a day trade). `BZ` and anything else is
  out. On Oct 27 2026: 2,615 rows, 2,364 EQ, 218 BE, 33 BZ.
- `nsearchives.nseindia.com` is tried when `archives.` fails. NSE wants a
  browser User-Agent and sometimes answers 403 or an HTML page; then the last
  cached list is used with a warning ("could not refresh the universe ...
  using the cached list of DATE"), or the run stops with the reason if there is
  no cache for that list.
- `--exchange BSE` writes `.BO` tickers for the same NSE symbols. Yahoo's BSE
  data is thinner: on Oct 27 2026 `RELIANCE.BO`, `INFY.BO` and `M&M.BO` had one
  daily bar for a 3-month request (so the daily scan calls them short), while
  `TCS.BO` had 64 and the 5-minute charts were complete. A few companies'
  BSE symbols differ from NSE's and come back as no data. Prefer NSE.

## The daily scan (before the open)

Yahoo's spark endpoint returns closes for 20 symbols a request: the Nifty 500
is 25 requests, about 22 seconds with the polite pause (0.3 s) on Oct 27
2026; `all` is about 119 requests. Liquidity comes from the spark meta: last
price at least `--min-price` (₹20) and last session's volume at least
`--min-volume` (1,00,000 shares). Run it before 09:15 IST or after 15:30 IST:
during the session the volume is the day's so far, and today's daily bar is
left out until the 15:30 close. Yahoo stamps NSE daily bars at 09:15 IST.

| setup | the rule on closes |
| --- | --- |
| `breakout_20d` | the last close is above every close of the 20 sessions before it |
| `bull_flag` | up more than 10 % over the 10 sessions before the last 5, then the last 5 closes inside a 5 % range |
| `reclaim_ma20` | the close before was under its 20-day average, the last close is above it |
| `oversold` | RSI 14 (Wilder) under 30 |
| `oversold_bounce` | RSI 14 was under 30 yesterday and today closed up |

Hits are listed most traded first (price times volume, in rupees).

## The opening-range breakout scan (during the session)

The session is 09:15 to 15:30 IST, 75 five-minute bars (the 09:00 to 09:15
pre-open makes no bars). The opening range is the first `--or-minutes` (15):
the 09:15, 09:20 and 09:25 bars. A hit is the first completed 5-minute bar to
CLOSE above the range high, at that bar's close time (the earliest is 09:35).

1. Stage 1, every symbol: spark closes of today's 5-minute bars, 20 a
   request. A chart goes on if a completed bar after the range closed at or
   above the highest close of the range, or if spark left out a bar after the
   range. Spark drops the odd 5-minute bar that the v8 chart has (37 of about
   3,700 bars over the Nifty 50 on Oct 27 2026; KOTAKBANK's 09:55, for one), so
   a gap there is not trusted either way. Both are necessary conditions, so no
   breakout is lost.
2. Stage 2, each candidate: the v8 chart with real highs and lows, one
   request each. Range high = the highest high of the range bars, range low =
   the lowest low, and here every bar must be there. Stage 2 checks at most
   `--max-confirm` (200) of them, the most traded first (price times volume so
   far), and prints PARTIAL with the count it skipped. `--max-confirm 0`
   checks them all.

Timing, live on Tue Oct 27 2026 (replayed at 16:15 IST with `--at 10:15`):
the Nifty 500 took 180 seconds (25 spark requests, then 200 v8 charts): 492
usable charts, 391 candidates, the 200 most traded checked, 151 of those
broke out. For a fast answer scan the daily watchlist, the Nifty 50, or a list
of names you trade (`--watchlist`, `--universe nifty50`, `--symbols`).

A chart is usable only when every 5-minute bar from 09:15 to the cutoff is
there; a missing bar means a halt, a circuit or a thin stock. Null closes are
dropped, a bar off the 5-minute grid (the live tick) is dropped, and a bar
counts only once it is complete (start + 5 minutes). Yahoo's 15:20 bar comes
back with no close after the session and its 15:25 bar carries the closing
print, which is one more reason the scan stops at `no_entries_after`. Before
09:35 IST, on a weekend or NSE holiday, on a special session, after the
15:30 close, or after `no_entries_after` (14:45 by default: brokers square off
MIS positions from about 15:20) it prints one plain line and writes nothing.

## Calendar

IST is UTC+05:30 all year (no daylight time). Built in: weekends and the NSE
equity holidays of 2026 (Republic Day Jan 26, Holi Mar 3, Ram Navami Mar 26,
Mahavir Jayanti Mar 31, Good Friday Apr 3, Ambedkar Jayanti Apr 14,
Maharashtra Day May 1, Bakri Id May 28, Muharram Jun 26, Ganesh Chaturthi
Sep 14, Gandhi Jayanti Oct 2, Dussehra Oct 20, Diwali Balipratipada Nov 10,
Guru Nanak Jayanti Nov 24, Christmas Dec 25). NSE has not published 2027: for
a 2027 date it warns once ("NSE holidays for 2027 are not built in; add them to
config extra_holidays") and treats weekdays as open. Special sessions are
never a normal day: the Budget-day Sunday session (Feb 1 2026, 09:15 to
15:00) and Muhurat trading (Sun Nov 8 2026, 14:20 to 15:30 IST per the NSE
circular, pre-open from 14:05; override with config `special_sessions`
`{"2026-11-08": ["HH:MM", "HH:MM"]}`). Their daily bar counts once the
session is over (the next day for a special session with no hours set).

## Data and limits

- Yahoo's chart and spark endpoints are free, unofficial and can lag. NSE and
  BSE charts come back in INR with `exchangeTimezoneName: Asia/Kolkata`. Bars
  are 5-minute bars, bar by bar, never tick by tick. query2 first, query1 on a
  429 or 5xx, one retry after a 5-second wait on a 429, and a 0.3 s pause
  between requests (`--pause`): keep it for 500+ symbols.
- Partial results are said as partial: "Fetched 499 of 500 charts (1 failed or
  had no data)". On Oct 27 2026 Yahoo had no chart for BAGMANE.NS. Never round a partial scan up to "the whole market".

## Steps

1. Once a day (it is cached; `daily` and `orb` rebuild it by themselves):
   `scan.py universe` (or `--universe nifty50` for a fast list).
2. Before the open (or after 15:30 for tomorrow): `scan.py daily`. Tell the
   user the counts (fetched, liquid, scanned, hits) and the top few by setup.
3. After 09:35 IST (10:15 is the classic): `scan.py orb`. Tell the user how
   many usable charts broke their range and when, and that a later hit is
   closer to the price now.
4. The user picks one chart. Hand it on: `/trader-in-news SYMBOL` (what is
   moving it), then `/trader-in-entry SYMBOL` (the entry bar by bar). Never pick
   for them.

## Example: Tue Oct 27 2026

The Nifty 50 at 10:15 IST (`tests/fixtures/trader-in-scanner/nifty50-5m-2026-10-27.json.gz`,
real Yahoo charts):

```
python3 scan.py orb --offline nifty50-5m-2026-10-27.json.gz --now "2026-10-27 10:15"
Opening-range breakout scan, Tue 2026-10-27 10:15 IST: 15-minute range (09:15 to 09:30), 5-minute bars, Yahoo.
Fetched 50 of 50 charts; 50 usable; 39 candidates, 39 confirmed with real highs and lows.
28 of 50 charts closed above their opening-range high by 10:15 IST:
  09:35  BEL.NS              ₹372.55  range 366.05 to 370.35  +0.59% over
  ...
  10:05  BAJAJ-AUTO.NS    ₹10,265.00  range 10,080.00 to 10,249.00  +0.16% over
```

BEL's range is the 09:15 to 09:25 bars, high 370.35, low 366.05; the 09:30 bar
closed at 372.55, 0.59 % over the high, at 09:35. RELIANCE did not break (range
high 1,197.00, best close by 10:15 1,196.50), and neither did M&M (range high
2,859.70, the 10:10 bar closed 2,859.30). The user picks one and Claude hands
it to `/trader-in-news BEL.NS`, then `/trader-in-entry BEL.NS`.

The pre-market scan for Wed Oct 28 (closes through Oct 27) tags BHARTIARTL,
BSE and TATACONSUM a 20-day breakout, INFY, TCS, HCLTECH, TECHM and TRENT a
bull flag, MARUTI, BAJAJ-AUTO and EICHERMOT a reclaim of the 20-day average,
SHRIRAMFIN, TMPV and NESTLEIND oversold, and NTPC, MAXHEALTH, JIOFIN and
NESTLEIND an oversold bounce.

## Rules

- Say what was scanned: which list, how many symbols, how many charts came
  back, how many were usable, and the time of the data in IST.
- Say "matched a rule", never "a buy", "a winner", "a multibagger" or "a good trade".
- Never print a P&L, a return or a profit figure.
- A hit is stale once the price has moved on. Re-run before acting on it.
- Prices are in ₹ with Indian grouping (₹1,23,456.78).

## What it never does

It never places, sizes or checks an order, never says which stock to buy,
never calls data real time, and never promises that a setup works.

## Safety

- Education and tooling, not investment advice. A scan hit is a rules match, not a recommendation; for
  advice, talk to a SEBI-registered investment adviser.
- Paper trading by default (`"paper": true`): a local simulated ledger at `trader-in/state/paper.json`,
  since Indian brokers have no paper account. Going live is the user's own decision, in their own config.
- Nothing in this pack places an order except trader-in-broker, and only when all three hold:
  trader-in-risk passed that exact order today, `paper` is false in the config, and the user typed an
  explicit yes for that one order in the chat (and approved the tool call when Claude asks).
- Long side only, cash equities only: no F&O, options, short selling or MIS leverage unless the config
  allows it and the user confirms.
- Broker keys and access tokens (Kite, Upstox) live in environment variables or the Claude Desktop
  config, never in the chat.
Files in this package (2)
  • SKILL.md 16 KB
  • scan.py 61 KB

Versions

RepositoryScoreLicence
This page · bhardwajaditya/day-trader-skill-india87MIT
ankurgoels/trader-skills-india100MIT

Database snapshot: 13.11.2026 · package version 69a2a5a13583 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100trader-scanner
    Chart Scanner for Indian stocks (NSE/BSE). Scans thousands of charts for setups: opening-range breakouts, bull flags, oversold bounces. Builds the list of NSE EQ-series stocks from NSE's EQUITY_L.csv (with a bundled NIFTY 100 fallback), runs a pre-market scan of daily closes…
  • 100trader-scanner
    Chart Scanner. Scans thousands of charts for setups: opening-range breakouts, flags, oversold bounces. Builds the list of NSE shares you can day trade (series EQ) from NSE's own equity list, or just the Nifty 500, runs a pre-market scan of daily closes (20-day closing-high…
  • 87nse-scanner
    Chart Scanner for NSE/BSE. Scans hundreds of Indian charts for setups: opening-range breakouts, flags, oversold bounces and, for investors, delivery-percentage spikes. Builds its stock list from the Nifty indices (Nifty 50, 100, 200, 500, Midcap 150, Smallcap 250, Bank Nifty) on…
  • 100trader-scanner
    Chart Scanner for the NSE (India). Scans the Nifty 100 (or Nifty 50, or your own list) for setups: opening-range breakouts, flags, oversold bounces. Builds the universe from NSE's own index constituent file, runs a pre-market scan of daily closes (20-day closing-high breakout,…
  • 100nse-trader-scanner
    Chart Scanner for NSE. Scans Nifty 50/100/500 or the full NSE equity list for 20-day breakouts, bull flags, 20-DMA reclaims, oversold bounces, 52-week-high proximity and intraday opening-range breaks, then writes a watchlist for the news and entry skills. Use when the user says…
  • 82trader-scanner
    Chart Scanner for NSE stocks. Scans hundreds of charts for setups: opening-range breakouts, flags, oversold bounces. Builds the symbol list from the Nifty 500 constituents (niftyindices.com) or, optionally, every EQ-series stock in NSE's EQUITY_L.csv, runs a pre-market scan of…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.