How to Use AI to Analyze Stocks: A Step-by-Step Workflow
How to use AI to analyze stocks in six steps: real data in, fundamentals, technicals, sentiment, a bull/bear debate, then a checklist instead of a trade.
Put this into practice with a watchlist
Build a watchlist, then review each signal’s entry, stop, target, and reasoning. Broker access is optional.
Why Pasting a Ticker Alone Fails
To use AI to analyze stocks well, give the model real data before you ask it anything. A prompt like "analyze NVDA" with no attached numbers forces the model to answer from memory, and memory is the weakest part of a language model when the subject is a balance sheet.
The evidence is specific. A CoLM 2025 study (arXiv 2504.00042) tested LLMs on more than 197,000 questions about the financial data of U.S. public companies. The models knew less about past performance than recent results, and they were more likely to hallucinate figures for larger companies, especially for recent years.
So the workflow below has one rule: the model computes and reasons over data you supply, never data it recalls. The six steps are (1) real data in, (2) fundamentals, (3) technicals, (4) sentiment and news, (5) a bull/bear debate, and (6) a checklist rather than a trade.
Step 1: Get Real Data Into the Model
There are three practical ways to put market data in front of a model.
| Method | What it gives the model | Setup effort | Best for |
|---|---|---|---|
| MCP server | Live tool calls: quotes, bars, filings, news | Low (one config entry) | Repeated analysis in Claude, Cursor, or Claude Code |
| CSV or text upload | A fixed snapshot of bars or a filing excerpt | None | One-off deep dives; reproducible |
| API script | Whatever you fetch and format yourself | High | Custom pipelines and batch runs |
MCP (Model Context Protocol) is the fastest route for an ongoing workflow. Alpaca's Trading MCP Server exposes 65 tools across its Trading and Market Data APIs, including get_stock_bars, get_stock_snapshot, and news lookups, and works with Claude Desktop, Claude Code, Cursor, VS Code, and Gemini CLI (Alpaca docs, 2026). Two settings matter for analysis-only use: ALPACA_PAPER_TRADE defaults to true, and ALPACA_TOOLSETS can restrict the server to read-only market data. Tradewink runs a hosted MCP server with 39 tools on the same idea, including get_technical_analysis, get_earnings, get_news, and analyze_ticker.
Without a connection, a CSV upload works. Export 120 daily bars (date, open, high, low, close, volume) and attach the file. Every figure the model cites can then be traced to a row.
Confirm the data landed: ask the model to print the first and last three rows plus the date range. If it cannot, nothing downstream is trustworthy.
Step 2: Fundamentals Pass With SEC Filings
The fundamentals pass reads what the company filed, not what a summary site says it filed. SEC EDGAR Full-Text Search covers the full text of every electronic filing since 2001, including exhibits, and supports exact phrases, exclusion with a hyphen or NOT, OR clauses, wildcards, form-type filters, and a NEAR() operator for two terms within a set number of words (SEC EDGAR FAQ). It does not support natural-language queries.
A practical sequence:
- Open the latest 10-K and 10-Q. Copy the income statement, cash flow statement, "Risk Factors," and "Management's Discussion and Analysis."
- Search EDGAR for the exact phrase "going concern" plus the company name, filtered to the last two years.
- If an earnings call transcript exists, include the Q&A. Analyst questions are where the friction shows.
Paste those excerpts and use this prompt:
Analyze the attached 10-K and 10-Q excerpts for [COMPANY].
Rules:
- Use only numbers in the attached text. Quote the exact line for
every figure you cite.
- If a number is not in the text, write "NOT IN SOURCE". Do not
estimate it.
Tasks:
1. Revenue, gross margin, operating margin, and free cash flow for
the last two fiscal years, with year-over-year change.
2. Debt maturing within 24 months versus cash on hand.
3. The three risk factors that changed most versus the prior filing.
4. Any language on customer concentration, going concern, or
material weakness in internal controls.
Output a table, then a 100-word summary of what changed.
The "NOT IN SOURCE" rule is the most important line in the prompt. It gives the model a permitted way to say it does not know, which cuts the rate of invented figures. The guide to reading earnings reports covers which lines to extract.
Step 3: Technical Pass: Compute, Do Not Recall
Language models are decent at arithmetic on data they can see and poor at recalling indicator values from memory. A model that receives 120 closes and computes a 14-period RSI step by step is doing math you can check.
| Indicator | Can the model compute it from supplied bars? | Risk if asked without data |
|---|---|---|
| 20/50/200-day SMA | Yes, simple averages | Will state a plausible but invented level |
| 14-day RSI | Yes, with the calculation shown | Will guess a round number near 50 |
| 14-day ATR | Yes, from high/low/close | Will confuse ATR with daily range |
| Relative volume | Yes, from a volume column | Will not know the baseline |
Prompt template for the technical pass:
Attached: daily OHLCV bars for [TICKER], [START DATE] to [END DATE].
Compute, showing intermediate values:
1. 20-day and 50-day simple moving averages as of the last bar.
2. 14-day RSI with Wilder smoothing. Print the average gain and
average loss used.
3. 14-day ATR and ATR as a percent of the last close.
4. Three highest swing highs and three lowest swing lows in the last
60 bars, with dates.
5. Average volume over the last 20 bars versus the last bar.
Use no price or indicator value not derived from the attached bars.
If the data is insufficient, say so.
Spot-check one number by hand. If the 20-day SMA is wrong, discard the pass. The RSI entry has the formula the model should follow.
Step 4: Sentiment and News Pass
News is where a knowledge cutoff is most dangerous, because the model will describe "recent" events that are months old. The fix is to supply the headlines yourself, with dates, and require the model to attribute every claim to a supplied item.
A 2024 live experiment in Finance Research Letters found that ChatGPT-4 with internet access produced stock "attractiveness ratings" that correlated positively with later earnings announcements and returns, and updated them after earnings surprises and news (Pelster and Val, 2024). The narrow lesson: a model given fresh information can classify it usefully. A model given nothing cannot.
Attached: [N] news items for [TICKER], each with date, source, and
headline. Today's date is [DATE].
For each item:
1. Classify as positive, negative, or neutral for the stock.
2. Classify as company-specific, sector-wide, or macro.
3. Rate durability: one-day noise, one-quarter effect, or multi-year.
Then:
4. List any item that contradicts another item.
5. Name the most important scheduled event in the next 30 days that
appears in the items. If none appears, say "none in source".
Do not add events or facts that are not in the attached items.
Step 5: The Bull/Bear Debate Prompt
A single model asked for "both sides" produces a bull case and a bear case that share one underlying view, because both come from one forward pass. Research presented at ICML 2025 (Kim, Garg, Peng, and Garg, "Correlated Errors in Large Language Models") evaluated more than 350 models and found that when two models both erred on a leaderboard question, they gave the same wrong answer about 60% of the time, with higher correlation between models from the same developer or on the same base architecture.
Three practical consequences:
- Run the bull and bear cases in separate sessions so neither sees the other's draft.
- If you can, give the bear case to a different model family (Claude and GPT, or Claude and Gemini).
- Add a neutral third session whose only job is to list where the two cases disagree on facts.
You are the [BULL / BEAR] analyst for [TICKER]. Attached are the
fundamentals table, technical summary, and news classification.
Argue the [BULL / BEAR] case only.
- Every claim must cite a row or line from the attached material.
- Give exactly three arguments, ranked by how much they would move
the stock if true.
- For each, state the number or event that would prove it wrong
within 90 days.
- End with a confidence score from 0 to 100 and one sentence on what
would raise it by 20 points.
Do not mention the opposing case.
The falsification line ("what would prove it wrong") matters more than the arguments. It becomes the checklist in Step 6. The multi-agent AI trading entry covers how separate sessions and a disagreement veto fit together.
Put the setup on a watchlist first
Use the rules in this guide to evaluate a signal’s entry, stop, target, and reasoning before deciding what, if anything, to do.
Step 6: Turn the Output Into a Checklist, Not a Trade
The output of an AI stock analysis is a list of conditions, not an order ticket. The final prompt converts everything above into checkable items.
From the attached bull case, bear case, and disagreement list,
produce a pre-trade checklist for [TICKER]:
1. Facts both sides accept (with source line).
2. Facts in dispute, and the single data point that would settle each.
3. Five conditions that must all be true before any position is
considered, each a yes/no question with a number.
4. Three invalidation triggers: a price level, a fundamental event,
and a time limit.
5. Sizing inputs only: entry range, stop distance in dollars and ATR
multiples, and risk per share.
Do not recommend a buy or sell. Do not state a price target.
Take the sizing inputs to the position size calculator. If the numbers survive, run the idea in a paper trading account before any capital is involved.
Worked Example: Northwind Robotics (Hypothetical)
Every number in this section is invented. Northwind Robotics (fictional ticker NWRB) is a made-up industrial automation company.
| Input (hypothetical) | Value | Source in workflow |
|---|---|---|
| FY2025 revenue | $412M, up 18% YoY | Step 2, 10-K excerpt |
| FY2025 free cash flow | $31M, up from $9M | Step 2, cash flow statement |
| Debt due within 24 months | $95M vs $58M cash | Step 2, debt footnote |
| Last close | $47.20 | Step 1, attached bars |
| 20-day / 50-day SMA | $45.10 / $42.80 | Step 3, computed |
| 14-day RSI | 63 | Step 3, computed |
| 14-day ATR | $1.90 (4.0% of close) | Step 3, computed |
| News, last 30 days | 6 items: 4 positive, 1 negative, 1 neutral | Step 4 |
Step 2 flags what most summaries miss: $95M of debt maturing against $58M of cash means the company needs a refinancing or roughly two more years of the current $31M free cash flow. The model marks the refinancing terms as "NOT IN SOURCE" because the 10-Q does not disclose them.
Step 3 shows price above both moving averages with RSI at 63, below the usual 70 overbought threshold. ATR of $1.90 means a 2-ATR stop sits $3.80 below entry.
Step 5, run in two sessions, produces a bull case built on free-cash-flow growth and a bear case built on the debt wall. The neutral session finds the two agree on every number and disagree only on whether a refinancing will close. That disputed fact becomes the top line of the Step 6 checklist: "Has the company announced refinancing terms for the $95M maturity, yes or no."
Sizing inputs from Step 6, still hypothetical: entry $46.50 to $47.50, stop $3.80 below (2 ATR), risk per share $3.80. On a hypothetical $25,000 account risking 1% per trade ($250), that is 65 shares, about $3,070 of exposure. Nothing here is a recommendation; it shows how the arithmetic flows into a sizing decision.
What LLMs Are Good and Bad At for Stock Analysis
| Task | Good or bad | Why |
|---|---|---|
| Summarizing a 90-page 10-K into the ten lines that changed | Good | Long-context reading is a core strength |
| Computing indicators from supplied bars | Good, with verification | Arithmetic on visible data is reliable; check one value by hand |
| Classifying supplied headlines by tone and durability | Good | Text classification is what the model was built for |
| Recalling a company's revenue from memory | Bad | Hallucination rate rises for large companies and recent years (arXiv 2504.00042) |
| Quoting a current price or "today's" news | Bad | No live feed unless a tool is connected; knowledge cutoff applies |
Limitations You Cannot Prompt Away
Four constraints survive every prompt template:
- Knowledge cutoff. The model knows nothing after its training date. Treat any "recent" fact stated without a supplied source as stale until you verify the date.
- Hallucinated figures. The CoLM 2025 study counted a stated figure more than 10% off the true value as a hallucination and found the problem concentrated in the best-covered companies. Attach the source and require quotes.
- No live prices. Without a connected tool, any price the model mentions is a memory, not a market. The MCP route in Step 1 exists to solve this.
- Correlated model errors. Two sessions of one model, or two models from one developer, share blind spots. Different model families reduce the overlap but do not remove it (Kim et al., ICML 2025).
None of these are fixed by better prompting. They are fixed by supplying data, requiring citations, splitting sessions, and keeping a human on the final decision.
How Tradewink Handles This
The workflow above, automated, is the design. The MCP server supplies quotes, bars, earnings, filings, and news to Claude or any MCP client through tool calls, so the model never recalls a number. Indicators are computed server-side from stored bars, not by the model. AI conviction scoring applies an additive, capped boost to rule-based screener output; the AI conviction scoring guide explains why the model stays out of the primary signal. Everything defaults to paper mode.
This article is educational. Tradewink is a publisher of trading tools and research, not a registered investment adviser, and nothing here is financial advice or a buy or sell call on any ticker. Stock trading involves substantial risk of loss, AI output can be confidently wrong, and past results do not predict future performance.
Frequently Asked Questions
Can ChatGPT or Claude analyze a stock if I just type the ticker?
It will produce an answer, but the numbers come from training memory rather than current data. A CoLM 2025 study of more than 197,000 financial questions found LLMs were less informed about past performance and more likely to hallucinate figures for large, well-covered companies. Attach filings, bars, or a live data tool first, then ask.
What is the best way to get real stock data into an AI model?
An MCP server is the lowest-friction option for repeated use, since it lets the model call tools for quotes, bars, filings, and news on demand. Alpaca's Trading MCP Server exposes 65 such tools and defaults to paper mode, and Tradewink hosts a 39-tool server. For a one-off analysis, uploading a CSV of daily bars and pasting 10-K excerpts works with no setup.
Which technical indicators can an AI compute reliably?
Moving averages, RSI, ATR, and relative volume are all simple arithmetic on supplied OHLCV bars, and the model can show its intermediate steps so you can verify one value by hand. VWAP needs intraday volume bars. No indicator should be trusted if the model produced it without data attached.
Why should the bull and bear cases run in separate sessions?
A single session generating both sides shares one underlying view, so the disagreement is shallow. Research presented at ICML 2025 found that when two LLMs both erred, they gave the same wrong answer about 60% of the time, with higher overlap for models from the same developer. Separate sessions and different model families reduce that correlation.
How do I find specific language in a 10-K quickly?
Use SEC EDGAR Full-Text Search, which indexes the full text of electronic filings since 2001 including exhibits. It supports exact phrases in quotes, exclusion with a hyphen or NOT, OR clauses, wildcards, form-type filters, and NEAR() proximity search. Natural-language questions are not supported, so search for the exact phrase you want.
Should I trade directly on what the AI says?
No. The workflow ends with a checklist of yes/no conditions, invalidation triggers, and position-sizing inputs, not an order. Run the sizing through a calculator, test the idea in a paper account, and keep the final decision with a human. AI stock analysis is educational research, not financial advice, and trading carries substantial risk of loss.
Read next
Keep learning with a related guide before putting an idea on your watchlist.
How to Trade Stocks with Claude: A No-Code Guide for 2026
Learn how to research and paper-trade stocks with Claude using the Model Context Protocol (MCP). No API key, no code — just OAuth and natural language. Tradewink's public offering is paper trading only.
ChatGPT for Stock Trading: Complete Guide for 2026
How to use ChatGPT for stock trading: market analysis, strategy design, backtesting prompts, and safe paper-trading workflows. Plus its real limits.
Claude vs ChatGPT for Stock Analysis: Which Is Better for Traders?
Claude vs ChatGPT stock analysis compared: 10-K reading, reasoning, MCP tool use, live data limits, cost tiers, and a 5-prompt test you can run yourself.
How to Read an Earnings Report: A Trader's Complete Guide
Earnings reports reveal a company's financial health every quarter. Learn how to read an earnings report — EPS, revenue, guidance, and the metrics that actually move stock prices.
AI Conviction Scoring Explained (Paused Feature)
How multi-factor conviction scores (0–100) work in theory — technicals, regime, sentiment, and review. Tradewink's conviction signal type is paused as of May 2026.
Ready to evaluate a signal?
Start free with a watchlist and inspect the context before you consider a broker connection.
Try AI signals on your watchlist
Send yourself a signal preview, then add tickers to see ranked entries, exits, and risk notes in Tradewink.
Key Terms
Related Signal Types
Tradewink builds explainable market research for self-directed traders. Build a watchlist, inspect signal reasoning and risk context, and paper-track ideas before you decide. Public subscriptions are paper-only; separately approved private beta accounts may submit live broker orders.
How this guide is reviewed
Tradewink reviews educational content against its documented market-data sources, risk controls, and product methodology. See our data sources and evaluation methodology for the evidence and limitations behind the platform.