Skip to main content
AgentAddaAgentAdda
All Articles
AI AgentsFinancial ServicesMarket IntelligenceProductAgentic Systems

Talk 2 Stocks: Your Personal AI Assistant for Market Intelligence

An NSE-first market intelligence platform that brings decades of trading wisdom together with modern AI synthesis — 137 indices, 48 investment candidates, 12 analytical layers per stock, delivered as a single self-contained interactive report.

18 May 202622 min read·AgentAdda Collective

Opening

Most market AI demos start with a promise. Real research starts with a workflow.

A market intelligence assistant has to do more than answer. It has to investigate.

Most market AI demos open with a single line: ask any question about any stock. Real research rarely works that way. A practitioner does not ask one question and stop. They understand the market state. They pick the right data mode. They retrieve evidence. They inspect technical context. They compare sectors. They check global cues. They read a filing or check an event. Then — only then — do they synthesise a view, with appropriate risk framing.

Agent Adda was built around this realisation: the value is not in the chat box. It is in the disciplined loop around it. Talk 2 Stocks, surfaced through nse_agent.py, is that loop made into a working assistant.

The durable value in applied AI agents is not the chat box. It is the tool-using, evidence-aware workflow around the chat box.

This document is a point of view on that pattern, applied to NSE-first market research. Throughout, the research-only frame is explicit. Talk 2 Stocks is a research and learning assistant. It is not a trading recommendation engine. The value is repeatable investigation, not prediction.

Cover page

Who This Is For

Three audiences, one document

This POV is written to be read by three groups. Each will find a different centre of gravity in the same text.

Builders

AI and product builders who are deciding how to design assistants that hold up after the first demo. Section 03 (architecture), Section 04 (principles) and Section 10 (takeaway) carry the design lessons.

Practitioners

Analysts and investors researching NSE-first markets who want a faithful map of how this system actually thinks. Section 05 (RIC), Section 06 (anatomy) and Section 08 (artifacts) show the working surface.

Editorial Readers

Followers of the Agent Adda thesis tracking how "Hold. Think. Then act." translates into shipped products. The opening, executive summary and Section 04 carry the editorial line directly.

Executive Summary

Five propositions, in plain language

The thesis of this document, compressed into the smallest number of statements that still carry weight.

Proposition 01

Market intelligence is a workflow problem before it is an LLM problem. Indices, stocks, sectors, events and global cues live in different tools. The friction is navigation and synthesis, not raw answering.

Proposition 02

A chat box alone is not enough. Real assistants need tools, rules, data freshness, context routing, and reusable research recipes — not just a model and a prompt.

Proposition 03

Sequence is what makes investigation feel like investigation. A one-shot prompt cannot replicate a multi-step research loop. Recursive Investigative Conversations (RICs) make the sequence explicit.

Proposition 04

Artifacts beat answers. HTML and PDF reports for sector rotation, stage tracking and global context turn fleeting chat output into evidence the user can revisit, audit, and share.

Proposition 05

Discipline is the product. The durable value is consistency, repeatability and risk framing — not novelty. "Hold. Think. Then act." is editorial line, not a slogan.

The remainder of this document unpacks each proposition through the Talk 2 Stocks system: its terminal surface, its five-layer architecture, its operating principles, its eight named RICs, its prompt library, the artifacts it emits, and a worked anatomy of a single session.

Section 01 · The Problem

Section 01 · The Problem

Market research is fragmented. The friction is everywhere except inside the question.

Indices live one place. Stock-level data another. Sector rotation a third. Filings somewhere else.

Even when the data exists locally, the workflow is repetitive. Open reports. Scan screeners. Compare symbols. Inspect indicators. Write notes. Remember what to check next. Each repetition of this pattern costs time and consistency.

Large language models help with synthesis — they are very good at narrating a clean read of structured inputs — but a chat box alone is not enough. The model does not know which mode of data is appropriate (intraday or end-of-day). It does not know which screeners are relevant. It cannot navigate filings on its own. It does not preserve research artifacts the user can revisit.

What is missing in most assistants

  • Tool-using behaviour, not just text generation
  • Mode awareness — when to read live data, when to read end-of-day
  • Context routing — knowing which tool answers which kind of question
  • Reusable recipes for recurring research patterns
  • Artifact emission — outputs that survive the chat session
  • A discipline of caveats and invalidation, not just confident answers

Talk 2 Stocks combines these missing pieces into one assistant, surfaced through a single terminal.

Section 02 · What It Is

Section 02 · What It Is

A terminal-first AI assistant for NSE-first market research

One window. 150+ commands. A single operating discipline.

Agent Adda is a terminal-first AI market intelligence assistant for NSE-first workflows, with expanding support for US and global market context. It combines natural language questions, slash commands, curated prompts, Recursive Investigative Conversations, technical screeners, intraday scanners, background monitors, watchlist alerts, forensic analysis, options chains, deep document search, and local data tools — all accessible from one interactive terminal: nse_agent.py.

The surface is deliberately broad. Most market intelligence workflows require five to ten different capabilities in sequence. A practitioner opening research on a stock needs a live quote, a technical read, a fundamentals check, a recent-news pass, a peer comparison, and a corporate events lookup — then a synthesised view with caveats. Having each of those capabilities in a different tab, at a different keyboard shortcut, with different data freshness, is exactly the fragmentation the terminal was built to remove.

Twelve Intelligence Surfaces

Each surface earns its place by removing a specific kind of friction. Together they make nse_agent.py a complete operating environment for market research — not a chat wrapper around a single data API.

Natural language + mode control

Ask in plain language or use slash commands. Three explicit data modes — /live (intraday), /eod (historical), /auto (session-aware) — control which data window every answer draws from.

Intraday scanner

9 scan strategies on 15-minute charts: ORB (Opening Range Breakout), gap-and-go, MACD crossover, RSI divergence, Bollinger squeeze, VWAP reclaim, VCP, momentum, and all-strategies sweep.

EOD screeners

10 end-of-day screeners: Stage 2 universe, momentum leaders, high-RS names, turnaround setups, Stage 1 bases, tight-range (VCP-like), oversold bounce, Supertrend BUY, strong-buy signals, new Stage 2 entrants.

Background monitors

14 auto-running strategies that scan continuously and queue alerts every few minutes: breakout, volume surge, reversal, momentum, Supertrend flip, VCP, ORB, gap-go, VWAP, engulfing, EMA ribbon, multi-confirm, RSI divergence.

Watchlist alerts

Price and RSI alerts on any NSE symbol. Natural-language input ("RELIANCE breakout above 1580 in 15min") parsed via LLM with graceful positional fallback. Background monitor polls every five minutes during market hours.

Deep search — 11 verticals

Parallel search across NSE announcements, corporate actions, insider trades, shareholding patterns, analyst coverage, broker research, mutual fund holdings, concall transcripts, sector news (6 portals), social buzz, and BSE filings.

Document analysis + 360 degrees

Read PDFs, DOCX, XLSX, CSV or any URL. For a stock ticker, runs a 360 pass: technicals, fundamentals, forensic scores, latest catalysts, sector context, institutional/insider activity — unified into one executive report.

Forensic accounting

Three-model financial health screen on any NSE stock: Beneish M-Score (earnings manipulation risk), Piotroski F-Score (financial health, 9 signals), Altman Z'-Score (emerging-market distress/bankruptcy risk). Single or comparative multi-stock view.

CANSLIM evaluation

William O'Neil's 7-point growth quality framework: Current quarterly earnings, Annual growth, New catalyst, Supply and demand, Leader or laggard, Institutional sponsorship, Market direction. Scored 0–7 with STRONG BUY / BUY / HOLD / AVOID verdict.

Options and F&O

Live options chains with PCR, max pain, Greeks, IV%, OI side-by-side for calls and puts. Open interest analysis, futures overview, and 10 strategy builders: bull call spread, iron condor, long straddle, covered call, calendar spread, and more.

RIC investigations

8 multi-step recursive recipes that decompose recurring research patterns into 4–5 sequential tool calls: Sherlock, Sector X-Ray, Breakout Hunter, Earnings Playbook, Index Pulse, Peer Battle, Risk Radar, Morning Intel.

Report generation

8 report types (technical, fundamental, forensic, research, intraday, CANSLIM, RIC, sector) in three formats (HTML, PDF, Markdown). Reports are reusable artifacts — not chat paragraphs.

The Command Surface

150+ slash commands are organised into intelligence domains. The table below shows how the surface is structured — what each domain covers and how much depth it carries. The user does not need to know all 150 commands to begin; natural language handles most queries. The commands are there for practitioners who want precision and reproducibility.

Intelligence DomainKey Commands & SurfacesDepth
Investigation/ric (8 multi-step RICs), /analyze (PDF, DOCX, URL, symbol 360°), /canslim, /forensic (Beneish + Piotroski + Altman), /concall25+
Discovery/search (11 parallel verticals: NSE, BSE, insider, shareholding, MF, analyst, broker, concall, news, social, filings), /screen (10 EOD screener types)30+
Surveillance/monitor (14 auto-alert strategies: breakout, momentum, VCP, ORB, gap-go, VWAP, Supertrend, engulfing, EMA ribbon…), /alert (price + RSI, NL-parsed), /scan (9 intraday strategies)30+
Market analytics/chart (ASCII + interactive HTML, 7 timeframes, RSI/MACD panels), /options, /chain, /oi, /fno, /strategy (10 options strategies), /report (8 types, 3 formats)35+
Context & macro/global, /us (indices + sectors + US Stage 2), /heat (sector seasonal heatmap), /cycle (economic phase), /events (corporate calendar), /narrative, /scenario, /voice20+
Library/prompts (60 curated prompts across 10 categories: market, intraday, technical, sector, screener, fundamentals, stock dive, news, portfolio, global), /ric library (8 named recipes)68
Operations/refresh (5 modes: snapshot, live, full, analysis, status), /pnl (live portfolio P&L), /export (HTML/PDF), /theme (5 themes), /scale, /context, /new20+

Section 03 · The Research Foundation

Section 03 · The Research Foundation

Weinstein. Minervini. O'Neil. Synthesised.

Talk 2 Stocks is not a collection of indicators. It is a specific investment philosophy, quantified and operationalised.

The sector rotation report and the Stage 2 tracker — the two most-used visual artifacts in the system — are grounded in a body of market research that spans thirty years. Stan Weinstein's 1988 work on market stages, William O'Neil's CANSLIM framework, Mark Minervini's trend templates, and Jegadeesh and Titman's 1993 academic work on momentum (Journal of Finance) form the intellectual core. The system synthesises them into one quantitative pipeline: top-down macro, then sector rotation, then stage analysis, then execution timing.

Money does not flow into "the market" uniformly. It rotates between sectors, and within sectors it rotates between stocks — and each stock passes through identifiable life-cycle stages before, during, and after a major move. — Weinstein, 1988

Three Forces Drive Every Stock Return

Cohen and Polk's research on sector attribution establishes a striking decomposition of stock returns. The implication is direct: most stock selection errors are not stock-level errors at all — they are macro and sector errors committed before a single stock is analysed.

Macro Regime (~30%)

Bull, bear, or chop — the market tide. A stock in Stage 2 in a Stage 4 index will still struggle. Market direction (the M in CANSLIM) sets position sizing and the decision to be aggressive, neutral, or defensive before a single stock is considered.

Sector Trend (~50%)

The largest driver. Sector explains roughly half the move — a fact routinely ignored by practitioners who jump straight to stock selection. A stock in a top-ranked rotating sector has the institutional bid on its side; a stock in a laggard sector fights structural capital outflow.

Stock-Specific (~20%)

Earnings, news, technicals — the part most practitioners start with. It explains the least. Being right about a stock in the wrong sector in the wrong regime is a low-probability trade, regardless of how compelling the thesis is.

The Weinstein Four-Stage Cycle

Every stock — and every sector index — cycles through four identifiable stages defined by price behaviour relative to the 30-week moving average (approximately the 200-day MA). The cycle exists because institutional accumulation and distribution take time: a fund cannot deploy or redeploy ₹500 crore in a week without moving the price.

Stage 1 · Basing

Sideways drift, flattening 30-WMA, low and declining volume. Institutional accumulation is happening quietly, spread over weeks or months to avoid price impact. The appropriate action is to watch — the next move is not yet confirmed.

Stage 2 · Advancing

Breakout on volume, higher highs, rising 30-WMA. Once accumulation is complete, demand exceeds supply and a sustained trend emerges. The first 1–3 weeks after Stage 2 entry historically carry the highest reward-to-risk ratio. An estimated 80% of investable profits are made in Stage 2.

Stage 3 · Topping

Trend flattens, momentum diverges from price, chop increases. The same institutions that accumulated in Stage 1 are now distributing slowly into incoming retail demand near the peak. Volume patterns shift: up days lose volume, down days gain it. Existing positions should be trimmed.

Stage 4 · Declining

Below the 30-WMA, lower lows, volume rising on down days. Supply overwhelms demand — the mirror of Stage 1. Capital preservation dominates. Stage 4 stocks always appear cheap; that cheapness is a trap, not a signal.

The CANSLIM-Weinstein-Minervini Synthesis

The three frameworks are not alternatives — they operate at different layers of the same decision cascade. Weinstein defines which stage to be in. Minervini's trend template defines what quality within Stage 2 looks like (8 criteria: all EMAs aligned, RS ≥ 30-week high, 200-DMA rising, etc.). O'Neil's CANSLIM ensures the fundamental quality of the move — that the earnings and institutional sponsorship are there to sustain it.

Together, they implement: top-down macro → mid-level sector rotation → bottom-up stage analysis → execution timing. Each layer enforces a discipline that compensates for a known behavioural weakness. Order matters: no stock analysis begins until the macro and sector gates are passed.

Anchoring Bias

"This stock is cheap now." Stage 4 stocks always look cheap — the system refuses to enter below the 30-WMA regardless of valuation.

Recency Bias

"The sector did well last week." Rotation scores use multi-timeframe RS (5D, 1M, 3M, 6M) — a single week cannot dominate.

Narrative Bias

"The story is compelling." Quantitative scores — Investment Score, CANSLIM score, Piotroski F-Score — override storytelling.

Confirmation Bias

"I still believe in the thesis." Stage 2 exit flags fire mechanically on signal change, not on opinion revision.

Section 04 · Architecture

Section 04 · Architecture

Five layers, one disciplined loop

Talk 2 Stocks is easiest to understand as a workflow assistant with five layers — input, orchestration, data, analysis, output.

Each layer earns its place. Input expresses intent. Orchestration routes it. Data answers honestly. Analysis builds evidence. Output preserves the work as artifacts.

Layer 01 · Input

How the user expresses intent. The terminal accepts free-text questions, slash commands, prompt-library entries, and named RIC recipes. The intent surface is plural by design: a beginner can ask in natural language; a practitioner can take a shortcut.

Layer 02 · Orchestration

Routing intent to the right tool, at the right time. Intent detection classifies what the user is asking about. The mode resolver chooses between /live, /eod and /auto. Session state remembers the last symbol, sector, RIC and mode so a follow-up like "and its peers?" resolves correctly. The router decides which tool runs.

Layer 03 · Data

Local first, fall back honestly. The system reads from historical CSV and SQLite, intraday SQLite, and falls back to NSE and yfinance when fresh data is needed. Report artifacts and filing documents are also part of the data surface — the assistant can re-read its own outputs.

Layer 04 · Analysis

Tools for evidence; the LLM for synthesis. Technical indicators, screeners, global context checks, corporate event lookups and filing extraction produce structured findings. The model writes the narrative and frames the caveats. The split is intentional — the LLM is not the source of truth, the tools are.

Layer 05 · Output

An artifact, not just an answer. The assistant emits terminal narratives, Markdown summaries, HTML reports and PDF artifacts. The output is designed to be re-read, audited and shared, not just consumed in a chat scroll.

The architecture is deliberately practical. The assistant does not try to replace every market tool. It coordinates the repeated steps that usually sit between raw data and a usable research view.

A worked view of how a user sentence becomes an artifact: Input → intent and mode → tool routing → emit. Trace mode preserves the path.

Section 05 · Operating Principles

Section 05 · Operating Principles

Six tenets we hold to

Architecture is downstream of principle. The tenets came first; the layers and the loop followed.

A working assistant is the visible artifact of a set of choices made earlier — about what the system should refuse to do, what evidence it owes the user, and where the line between LLM and tool falls. The six tenets below are the operating discipline of Talk 2 Stocks.

Tenet 01 · Hold Before You Act

The system reads mode, state and intent before answering. A fast wrong answer is worse than a slow correct one. The pause is the product.

Tenet 02 · Tools Are the Source of Truth

The LLM narrates; the tools verify. Numbers, levels, breadth and rotation reads come from screeners and indicators. The model writes the synthesis around evidence the tools produced.

Tenet 03 · Every Read Carries an Invalidation

No setup, stage call or thesis is presented without an explicit level or condition that would prove it wrong. A read without an exit is not a read; it is a guess.

Tenet 04 · Artifacts Beat Answers

A chat answer disappears with the scroll. An HTML or PDF report can be revisited, audited and shared. The assistant ends meaningful investigations in an artifact, not a paragraph.

Tenet 05 · Modes Are Explicit

/live, /eod and /auto are user-facing for a reason. The user should always be able to know which data window the assistant is reading from and override the resolver if needed.

Tenet 06 · Discipline Over Novelty

Repeatability beats cleverness. A workflow that runs the same way every day is auditable and teachable; a one-off feat is neither. The same investigation, twice, should produce comparable evidence.

A read without an invalidation is not a read; it is a guess. Talk 2 Stocks refuses to make that trade.

Section 06 · Recursive Investigative Conversations

Section 06 · Recursive Investigative Conversations

Why RIC matters

A one-shot prompt can answer a narrow question. It cannot guide a user through an investigation.

RIC stands for Recursive Investigative Conversations. The point is simple: market research often requires sequence. A RIC starts with a broad question, breaks it into sub-questions, retrieves evidence, compares alternatives, refines the hypothesis, and produces a final view with caveats.

The six-step recursive loop's discipline is not just in the steps; it is in the refusal to skip them.

Eight Named RICs

Each RIC encodes a recurring research pattern. The user does not have to remember the sub-questions or the order — the recipe holds them. Every RIC ends in an artifact and applies caveats and invalidation by default. The eight RICs cover the full arc of practitioner work — from morning session prep to earnings-season management.

RIC 01 · Sherlock

5 steps: Live quote → Technical setup (stage, RS, indicators) → Fundamentals → News and catalysts → Trade setup with invalidation.

RIC 02 · Sector X-Ray

4 steps: Sector overview → Leaders (RS, momentum) → Laggards and risks → Entry opportunities with breadth context.

RIC 03 · Breakout Hunter

5 steps: Market conditions → Stage 2 universe → High-RS leaders → VCP scan → Final picks with explicit confirmation rules.

RIC 04 · Earnings Playbook

5 steps: Latest results → Financial ratios → Peer comparison → Management commentary → Post-earnings setup read.

RIC 05 · Index Pulse

4 steps: Index technicals (trend, support, resistance) → Breadth and flow → Top stocks → Intraday levels.

RIC 06 · Peer Battle

4 steps: Fundamental comparison → Technical comparison → News and sentiment → Verdict with relative-strength ranking.

RIC 07 · Risk Radar

4 steps: Macro environment → Institutional flow (FII/DII) → Breadth extremes → Vulnerable stocks with downside triggers.

RIC 08 · Morning Intel

5 steps: Global overnight → Yesterday recap → Current breadth → FII/DII flow → Today's watchlist with session plan.

A RIC is not a longer prompt. It is a refusal to compress investigation into a single answer.

Section 07 · Anatomy of a Session

Section 07 · Anatomy of a Session

What a Sherlock RIC actually looks like

An assistant earns trust by showing its work. A trace of one investigation, end to end.

The trace below is a stylised view of a Sherlock RIC running against HDFCBANK after market close. It compresses what the trace mode would show: routing decisions, tool calls, evidence collected, synthesis, and the artifact emitted at the end. The detail is condensed for readability; the shape is faithful.

A trace is not a debugging artifact. It is a record of disciplined work.

[USER] > sherlock HDFCBANK
──────────────────────────────────────────────────────
[ROUTING] intent = stock_deep_dive · symbol = HDFCBANK
mode_resolver: /auto → /eod (post-close session window)
session_state: last_symbol = HDFCBANK · last_ric = sherlock
──────────────────────────────────────────────────────
[STEP 01] tool: company_lookup(HDFCBANK)
evidence: profile, latest filings index, recent corp actions
[STEP 02] tool: technical_read(HDFCBANK, mode=eod)
evidence: stage = Stage 2 (3w) · RS = 63 · 50DMA > 200DMA
[STEP 03] tool: peer_compare([ICICIBANK, KOTAKBANK, AXISBANK])
evidence: relative strength table, sector rotation context
[STEP 04] tool: events_calendar(HDFCBANK, window=±21d)
evidence: results date, dividend record, board meeting
[STEP 05] tool: risk_radar(HDFCBANK)
evidence: concentration · event risk · weak-evidence flags
──────────────────────────────────────────────────────
[SYNTH] narrative written · caveats applied · invalidation set
invalidation: weekly close < 1620 ends Stage 2 read
[OUTPUT] reports/sherlock_HDFCBANK_2026-05-09.html (artifact emitted)
[DONE] session preserved · trace inspectable via /trace

Three things in the trace are deliberate. The mode resolver makes its decision visible — the user can always see which data window was read. Every step names the tool and the evidence it produced; the LLM never invents a number. The synthesis ends in an explicit invalidation level and an HTML artifact, not a chat paragraph that disappears with the scroll. The trace is the workflow made legible.

Section 08 · Continuous Surveillance

Section 08 · Continuous Surveillance

The terminal watches while you think

A research assistant that only answers questions is a half-finished product. The durable value is in what it watches for without being asked.

Talk 2 Stocks has two continuous-surveillance surfaces: background monitors and watchlist alerts. Both run independently of the main chat loop. Both queue alerts that render in the terminal every few seconds during market hours. Together they convert the assistant from a query tool into a persistent research presence.

Background Monitors — 14 Strategies

The /monitor command launches auto-running scan workers that sweep an index at configurable intervals and queue alerts for anything that matches a strategy. The practitioner can run one strategy or all fourteen in parallel. Alerts display direction (BUY / SELL / WATCH), entry, target, stop-loss, risk-reward ratio, and a confidence level.

Trend and Momentum

breakout (EMA + volume confirmation), momentum (MACD + RSI aligned), ema_ribbon (all EMAs bullish or bearish), multi_confirm (3 of 4 indicators agree).

Volatility Patterns

vcp (Volatility Contraction Pattern intraday), volume_surge (2x volume spike + price confirmation), reversal (RSI + Bollinger mean-reversion).

Price Structure

supertrend (buy/sell flip on Supertrend crossover), vwap (VWAP reclaim or loss alert), engulfing (bullish/bearish engulfing candlestick).

Intraday Patterns

orb (Opening Range Breakout on 5-minute bars), gap_go (gap + MACD continuation), rsi_divergence (RSI divergence signals).

Usage example: /monitor start breakout NIFTY 500 15 buy → runs every 15 min on NIFTY 500, BUY signals only. /monitor start all 5 → all 14 strategies, 5-minute sweep.

Watchlist Alerts

The /alert command manages manual price and RSI triggers on specific symbols. Input is natural language: "RELIANCE breakout above 1580 in 15min" or "TCS RSI below 30". An LLM parser converts this to a structured alert; a positional fallback handles cases where parsing fails. The background alert monitor polls every five minutes during market hours and surfaces any triggered conditions into the active session.

Section 09 · Intelligence Library

Section 09 · Intelligence Library

Sixty prompts. Eight RICs. One teachable surface.

The library is the interface between the practitioner and the command surface. It makes 150+ commands discoverable without memorisation.

A prompt library is not a convenience feature. It is a product design choice with a specific purpose: making the surface teachable. A new practitioner opening the terminal for the first time faces 150+ slash commands. The library gives them a starting point — sixty named research workflows, organised into ten categories, runnable with a single keystroke. Each prompt teaches by example: what a good market-intelligence question looks like, how to frame a sector comparison, what evidence a stock deep dive should gather.

Ten Categories, Sixty Prompts

The prompt library is organized into ten research domains. Each prompt is a complete, opinionated research question — not a template to fill in, but a live workflow to run.

Market Overview (6)

Market pulse, breadth snapshot, FII/DII flow, top movers, most active, 52-week extremes. Designed as daily session openers that frame the regime before any stock work begins.

Intraday Trading (7)

Bank Nifty scan, Nifty 50 scan, Nifty IT, RELIANCE intraday, VCP pattern hunt, volume spike, Supertrend setups. Mapped to 15-minute data and explicit intraday risk framing.

Technical Analysis (7)

Stage 2 breakouts, Supertrend BUY sweep, strong-buy signals, ADX leaders, NIFTY 50 technicals, BANK NIFTY setup, 52-week high breakouts.

Sector Analysis (7)

IT health, Banking, Pharma, Auto, FMCG vs Consumer, top sector today, sector rotation. Each prompt returns breadth, leaders, laggards and a rotation read.

Screeners (6)

Stage 2 universe, breakout candidates, high-RS stocks, investment-grade filter, recovery plays, momentum movers. Designed for systematic candidate generation, not discovery by intuition.

Fundamentals (7)

TCS analysis, HDFC Bank valuation, IT P/E comparison, high-ROE / low-PE screen, debt-free filter, concall summary, peer comparison. Paired with forensic and CANSLIM tools.

Stock Deep Dive (6)

RELIANCE full view, INFOSYS analysis, ADANI ENTERPRISES, ZOMATO, TATA MOTORS, SBI. Named stock prompts that run Sherlock-equivalent evidence passes on high-interest names.

News and Catalysts (5)

Top news, results calendar, FII bulk deals, macro events, Nifty news flow. Designed to surface event risk and narrative before a thesis is formed.

Portfolio (4)

Exposure analysis, portfolio vs Stage 2 universe, portfolio vs screen, holdings health. Keeps the user's actual positions inside the same research discipline as the broader market scan.

Global and Macro (5)

Global market read, USD/INR impact, crude oil context, FII position, emerging-markets comparison. Feeds the India read-through discipline used in the Morning Intel RIC.

The prompt library is browsable with /prompts and filterable by category. Any entry can be run with a single-keystroke shortcut (p1 through p60). The library is not a catalogue of features — it is a curated set of research starting points, each reflecting a real practitioner workflow.

A monitor is not a screener you run once. It is a standing instruction to the system to keep watching on your behalf.

Section 10 · Evidence Surfaces

Section 10 · Evidence Surfaces

An artifact you can revisit

A chat answer disappears with the scroll. An artifact lives long enough to be checked, audited and shared — and the most important ones are grounded in thirty years of investment research.

The report generation surface covers eight report types across three output formats (HTML, PDF, Markdown). Two of those reports deserve particular attention because they implement the CANSLIM-Weinstein-Minervini synthesis end-to-end: the Sector Rotation Report and the Stage 2 Tracker.

Two Reports, Two Time Horizons

The two reports work at different cadences and different levels of abstraction. Neither is useful without the other: the sector report tells you where to look; the tracker tells you when to act.

Sector Rotation Report (Strategic · Weekly)

Where to fish. Establishes the macro regime (bull / chop / bear), ranks NSE sectoral indices by Rotation Score, and surfaces the best stocks within the top 4–6 hot sectors. Output: a watchlist.

Stage 2 Tracker (Tactical · Daily)

When to cast the line. Filters the watchlist to Stage 2 stocks only, flags new Stage 2 entrants (BUY candidates — the first 1–3 weeks carry the highest reward-to-risk ratio), and flags Stage 2 exits (SELL signals). Output: today's entry and exit decisions.

Ranked by Rotation Score (0.35×RS_1M + 0.25×Return_1M + 0.20×RS_5D + 0.10×RS_3M + 0.10×RS_6M). Top sectors on 9 May 2026: Capital Markets (14.8), Defence & Aerospace (14.1), Energy/Power (13.0).

Confirmed Stage 2 names ranked by Investment Score (0.38×Technical + 0.27×RS + 0.25×Fundamental + pattern and Supertrend bonuses). Every row carries an explicit invalidation level.

The Five-Step Selection Funnel

The sector rotation report is not a screener that filters once. It is a five-step cascade that starts with the entire NSE universe and narrows to a conviction-weighted portfolio of approximately ten positions. Each gate is necessary; skipping any one produces a materially worse candidate set.

  1. NSE Universe (~2,000) — load_comprehensive_analysis() — all NSE stocks with prices, technical scores and fundamental metrics from the daily refresh pipeline.

  2. Hot Sector Filter (Top 6) — rank_rotating_sectors().head(6) — Rotation Score = 0.35×RS_1M + 0.25×Return_1M + 0.20×RS_5D + 0.10×RS_3M + 0.10×RS_6M. Only stocks inside the top 6 ranked sectors advance.

  3. Stage 2 Hard Gate (Stage 2 only) — enrich_with_stage(): price > SMA50 > SMA200, both moving averages rising. Stage 1, 3 and 4 stocks are dropped. The gate protects against ~70% of historical drawdowns.

  4. Investment Score Rank (Top 8/sector) — 0.38×Technical + 0.27×RS + 0.25×Fundamental + bonuses for pattern, Supertrend, trend signal and stage quality. Top 8 per sector advance.

  5. Final Portfolio (~10 positions) — compute_position_sizes() — conviction-weighted, capped at 15% per position, normalised to 100%. Action buckets: BUY_WATCH, HOLD_TRAIL, BREAKOUT_WATCH, WAIT_FOR_PULLBACK, AVOID.

Why the Step-by-Step Approach Raises the Win-Rate

Each gate raises the base probability of a successful outcome independently. Multiplied together, they produce a candidate with 4–5× the base rate of a random NSE pick.

Filter AppliedCumulative EdgeWin-Rate
Bull market regime confirmed (macro tide in your favour)Base rate for any stock in a confirmed bull regime~65%
+ Stock in top 4–6 sector by Rotation ScoreSector explains ~50% of stock return (Cohen-Polk research)~75%
+ Stage 2 confirmed — price above rising 30-WMAStage filter eliminates ~70% of historical drawdowns~85%
+ High RS rank vs Nifty 500 (≥ 80th percentile)RS leaders fall less in corrections, advance more in rallies~90%
+ Volume confirmation on breakout (≥ 1.5× 20-day average)≥ 2× qualifies as strong institutional participation~95%

Worked Example: AEROFLEX, 9 May 2026

Every gate applied to AEROFLEX on 9 May 2026 — from live report output, not simulation. Every number is from the actual pipeline run. The trade plan is mechanical and reproducible.

#FilterAEROFLEX Status · 9 May 2026Decision
1Macro regimeNifty CHOP · VIX 16.8 · breadth mixedDefensive sizing; selective entries only
2Sector rankingDefence & Aerospace = Rank 2 · Rotation Score 14.1Sector qualifies (top 6)
3Weinstein stageStage 2 confirmed · BULLISH Supertrend ₹340.20Stage gate passed
4Relative strengthRS 81.5% vs Nifty 500 · Percentile Rank 100/100Top decile leader
5Investment scoreComposite 74.1 · Technical 70.0 · BUY signalHigh conviction
6Pattern & volumeNEAR_RESISTANCE ₹413.6 · Volume 4.59× 20-day averageBREAKOUT_WATCH — institutional volume
7Risk planResistance ₹413.6 · Supertrend stop ₹340.2 · Support ₹252Entry on daily close > ₹413.6 · Stop ₹340.2
8Position sizingRanks in top 10 by Investment Score 74.1~12% allocated (capped at 15% per position)

Every decision is reproducible. Run the same pipeline tomorrow and the inputs change; the logic does not. That reproducibility is the product.

Two Forensic Surfaces the Market Misses

Beyond technical and fundamental surfaces, Talk 2 Stocks embeds forensic accounting intelligence made accessible in a single command.

Beneish M-Score

Eight-variable earnings manipulation detector. Score above −1.78 flags manipulation risk.

Piotroski F-Score

Nine-signal financial health model scored 0–9: 0–3 weak, 7–9 strong. Quality filter, not entry timing.

Altman Z-Score

Emerging-market distress and bankruptcy risk. Z' below 1.1 = distress zone. Calibrated for non-US (NSE-appropriate).

Multi-Stock Screen

/forensic TCS INFY WIPRO runs all three models comparatively, ranks by risk, surfaces highest-risk name first.

CANSLIM Quality Scoring

The /canslim command runs O'Neil's 7-point quality framework. STRONG BUY ≥ 6/7; AVOID < 4. A quality gate that runs before a technical setup is considered.

  • C — Current Earnings — EPS growth ≥ 25% YoY, revenue confirmation. Quarterly.
  • A — Annual Growth — EPS ≥ 25% for 3+ years, ROE ≥ 17%, stable margins.
  • N — New Catalyst — New product, management change, or near 52-week high.
  • S — Supply & Demand — Float, volume pattern. Smaller float with demand surge scores higher.
  • L — Leader — RS rank, sector outperformance, Stage 2 status. Laggards do not qualify.
  • I — Institutional — FII / DII / MF stakes increasing, bulk deals from quality institutions.
  • M — Market Direction — Bull, bear or correction regime. Follow-through day required.

Section 11 · How It Saves Time

Section 11 · How It Saves Time

Time saved is consistency gained

The point is not speed. The point is repeatability.

Talk 2 Stocks saves time by reducing repeated navigation and synthesis work. It brings commands, reports, scans, prompts and research flows into one terminal. It turns recurring analyst patterns into repeatable recipes. It generates structured summaries instead of leaving the user with raw tables. It preserves report outputs that can be reviewed later. It supports a faster move from question to evidence-backed view.

But the more durable value is consistency. A repeatable workflow is easier to audit, improve and teach than an improvised series of browser tabs and ad hoc notes. When the same investigation always runs the same way, two things follow: results become comparable across days, and gaps in the workflow become visible — they can be fixed instead of being absorbed by the analyst.

Reduced Friction

One terminal replaces a stack of browser tabs, screeners and ad-hoc notebooks.

Repeatable Recipes

Eight named RICs and a curated prompt library encode recurring investigations.

Structured Output

Each meaningful answer ends in a narrative summary or an HTML / PDF artifact.

Auditable Trace

Trace mode makes the tools called and the evidence cited inspectable.

Disciplined Framing

Every read carries caveats and invalidation; no signal is presented as a recommendation.

Section 12 · The Builder's Takeaway

Section 12 · The Builder's Takeaway

The chat box is the smallest part

For builders, this is the lesson: the durable value in applied AI agents is the workflow around the conversation, not the conversation itself.

For market intelligence, that means an assistant that can route intent, choose data modes, run screeners, read reports, produce artifacts, and keep the user inside a disciplined research loop. Talk 2 Stocks is a working example of that product pattern.

The same pattern generalises. A workflow assistant for life sciences research, manufacturing operations or regulatory intelligence has the same anatomy: input layer expressing intent in many forms, an orchestration layer that routes, a data layer that fails honestly, an analysis layer where tools build evidence and a model writes synthesis, and an output layer that emits artifacts.

The chat box is the smallest part. The discipline around it is the product.

Hold. Think. Then act.

That editorial line is the operating discipline of Talk 2 Stocks. The system holds — by reading mode, state and intent before answering. It thinks — by decomposing investigations into sub-questions and gathering evidence. It acts — by emitting an artifact the user can use. The order is the product.

Appendix A · Glossary

Terms used in this document

A reference for non-finance readers and for builders new to the NSE-first workflow and its analytical frameworks.

RIC — Recursive Investigative Conversation. A multi-step research recipe that decomposes a question into sub-questions, gathers evidence tool by tool, refines a hypothesis, and emits a structured view with an invalidation level and a persistent artifact.

Stage 2 — Weinstein-style trend stage: confirmed advance after a base. Typically requires price above the 30-week moving average with the average rising and relative strength confirming. Stage 1 = base, Stage 3 = distribution, Stage 4 = decline.

Breadth — Share of stocks participating in a market move: advancers vs decliners, percent above 50-DMA, new highs vs new lows. A move on weak breadth is treated as fragile; broad breadth supports a thesis.

RS — Relative Strength. A symbol's price performance versus a benchmark index or peer set, shown as a 0–100 percentile rank. Distinct from RSI (Relative Strength Index, a momentum oscillator bounded 0–100 by formula).

Regime — Overall market state — risk-on, risk-off, neutral — inferred from indices, breadth, volatility and global cues. Used as session-opening context; influences whether the assistant frames answers defensively or constructively.

Invalidation — The price level or condition at which a thesis is proved wrong. Talk 2 Stocks does not present a setup, stage call or investigation conclusion without one. A read without an invalidation is a guess.

DMA — Daily Moving Average. Common reference levels: 20, 50, 100, 200 DMA. The 50/200 crossover and the slope of the 200 DMA are standard trend filters.

/live /eod /auto — Data mode controls. /live prioritises intraday real-time NSE API data. /eod uses end-of-day historical CSV and SQLite snapshots. /auto routes by session window — intraday when the market is open, historical otherwise.

Artifact — A persistent output (HTML, PDF, Markdown) generated by a session, independent of the chat scroll. Designed to be re-read, audited, shared, and compared against future sessions.

VCP — Volatility Contraction Pattern. A technical setup where price and volume contract in a series of tighter and tighter ranges before a breakout. Associated with Stan Weinstein and Mark Minervini's work.

ORB — Opening Range Breakout. An intraday strategy that identifies the high and low of the first 15–30 minutes of trading and trades breakouts from that range on volume confirmation.

CANSLIM — William O'Neil's 7-point growth quality framework. C = Current quarterly earnings, A = Annual growth, N = New product/high, S = Supply & demand, L = Leader, I = Institutional sponsorship, M = Market direction. Scored 0–7.

Beneish M-Score — Eight-variable probit model for earnings manipulation risk. A score above −1.78 flags potential manipulation. Uses financial statement ratios including Days Sales in Receivables Index, Gross Margin Index, and Accruals.

Piotroski F-Score — Nine-signal financial health model scored 0–9. Signals cover profitability (4), leverage/liquidity (3) and efficiency (2). Score 7–9 = strong health; 0–3 = weak. Used as a quality filter, not a timing tool.

Altman Z'-Score — Emerging-market distress and bankruptcy risk model. Z' below 1.1 = distress zone; above 2.6 = safe zone. The prime variant (Z') is calibrated for non-US markets, making it directly appropriate for NSE-listed companies.

PCR — Put-Call Ratio. Total put open interest divided by total call open interest for an options chain. PCR above 1.2 is considered bullish (excess put hedging); PCR below 0.7 is considered bearish (complacency).

Max Pain — The options strike price at which the maximum number of open contracts (puts and calls combined) would expire worthless. Theoretically, market makers are incentivised to move price toward this level near expiry.

Supertrend — A trend-following indicator derived from ATR (Average True Range) and a multiplier, plotted above or below price. A buy signal fires when price closes above the Supertrend line; a sell signal fires when price closes below it.

nse_agent.py — The terminal entry point for Talk 2 Stocks. The single interactive window that exposes all 150+ commands: chat, slash commands, prompt library, RICs, scanners, monitors, reports, options, and forensic tools.

Mode resolver — The orchestration component that decides which data mode (/live, /eod) applies to a query. Reports its decision in trace mode so the user can always see which data window was read.

Trace mode — An audit view activated via /trace showing the routing decision, tools called, evidence cited and artifact emitted for any answer. Makes the investigation auditable and reproducible.

ADR — American Depositary Receipt. A US-listed instrument representing shares of a non-US company. Overnight ADR moves on Indian companies (INFY, WIT, HDB, etc.) are inputs to the India read-through in the global context report.

Pivot — A reference price level for breakouts and breakdowns — typically a prior swing high or a base boundary. Paired with an invalidation level in every setup read produced by Talk 2 Stocks.


About Agent Adda

Agent Adda is a practitioner-first platform that publishes points of view, working systems and design language for applied AI engineering. Its editorial line — Hold. Think. Then act. — is also the operating discipline of the products it ships.

Talk 2 Stocks, the system this document describes, is one of those products. It is the Agent Adda thesis applied to NSE-first market research: a terminal-first assistant whose value lives in the workflow around the conversation, not in the conversation itself.

Editorial line — Hold. Think. Then act. The order is the product.

Position — Research and learning publication. Not a recommendation engine. Not investment advice.

Series — Practitioner POVs on architecture, RAG, agentic systems, governance and applied workflows.

Disclaimer — Agent Adda and Talk 2 Stocks are for research, education and workflow exploration only. They are not investment advice, trading recommendations, financial planning, or a substitute for independent judgement, risk management or regulatory obligations. Market data can be delayed, incomplete, stale or incorrect. Users should verify evidence independently before making financial decisions.


Download

This article is available as a full PDF for offline reading and sharing.

Download PDF →

AgentAdda is a collective of data practitioners sharing honest insights on AI, data engineering, and enterprise transformation.

Back to All Articles