> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tradionlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Your first analysis

> A worked example, start to finish.

One real analysis, end to end: *does NVDA move more violently than AMD, and is the gap widening?* About ten minutes, and the same pattern answers everything after it. You write no code — you'll see some, because that's how you learn what an answer is built from.

<Info>
  AI Quant Research needs the **Trader** plan or above. See [plan comparison](/reference/plan-comparison).
</Info>

## Five questions that work as they are

A question needs three ingredients: a **symbol**, a **time window**, and **something measurable**. Type them the way you'd say them — Tradion reads plain English.

* *"Which one moves harder day to day, NVDA or AMD? Last six months. And which had the worse drawdown — the deeper fall from a high before it climbed back?"*
* *"If I'd bought SPY every time its 50-day average price crossed above its 200-day, and sold on the cross back down, would I have beaten holding it? Test 10 years."*
* *"What's TSLA's worst day of the week over the past two years?"*
* *"Do AAPL, MSFT, and BTC/USD move together right now, and has that changed in the last 30 days?"*
* *"Show me every week QQQ fell more than 5% in the last five years, and what it did the month after."*

Three terms from that list. A **backtest** runs a set of rules over past prices to show what would have happened if you'd followed them. A **50-day average price**, or moving average, is the average close over the last 50 days, redrawn daily so the trend shows through the noise. **Correlation** is whether two things move together: 1.0 in step, 0 unrelated, −1.0 opposed.

## In plain English: measurements, not opinions

Questions about *why* the market did something are guesswork dressed as analysis. Questions about *what* and *how much* are measurements — and measurement is the only thing running code can do.

Tradion cannot tell you why NVDA sold off. It can tell you how far, how fast, and how that ranks against every other selloff in five years. Ask "is NVDA a good buy?" and it has to guess what you meant; ask the first question in that list and it has a job.

## The walkthrough

<Steps>
  <Step title="Open a session">
    Click **AI Quant Research** in the sidebar, then **New Session**. No form to fill in — a chat panel on the left, an empty canvas on the right, and a cursor in the composer.
  </Step>

  <Step title="Ask the question">
    In the box marked **Ask the Quant...**, type:

    > Compare how much NVDA and AMD move day to day over the last six months. Which one is jumpier, and which had the deeper drawdown? Show both on charts.

    Press Enter. A **quant session** is one message sent in Analysis mode. Ask mode is free and unlimited.

    You can attach files too — up to 5, 10 MB each: CSV, Excel, PDF, JSON, text, images.
  </Step>

  <Step title="Watch the cells run">
    The chat panel counts through its steps — choosing functions, pulling live prices, writing the code, running it. On the right, cells appear one at a time: **Queued**, then **Running · 4.2s**, then **Done · 11.8s**.

    Tradion decides how many cells your question needs — roughly three to five for a quick lookup, eight to twelve for a full analysis with charts. There's no cap and no add-cell control. This one takes one to three minutes.
  </Step>

  <Step title="Read the result">
    **The chart** is interactive — hover for values, drag to zoom, double-click to reset.

    **The AI Insight** underneath reads what the cell found, in two or three sentences: *"NVDA's daily moves have averaged roughly 1.8× AMD's since March, with the gap widening after the April earnings gap."*

    <Check>
      If the AI Insight disagrees with your gut, that's the tool doing its job. Read the code before you dismiss it.
    </Check>
  </Step>

  <Step title="Look at the code">
    Every cell has a **Code** / **Output** toggle. Flip it and the generated Python appears:

    ```python theme={null}
    # Cell 2 — Daily volatility, NVDA vs AMD
    nvda = fetch_bars("NVDA", timeframe="daily", years=0.5)
    amd  = fetch_bars("AMD",  timeframe="daily", years=0.5)

    nvda_vol = nvda["close"].pct_change().std() * (252 ** 0.5) * 100
    amd_vol  = amd["close"].pct_change().std()  * (252 ** 0.5) * 100

    print(f"NVDA annualised volatility: {nvda_vol:.1f}%")
    print(f"AMD  annualised volatility: {amd_vol:.1f}%")
    ```

    You are not expected to be able to write that. Reading it is enough:

    * `fetch_bars` pulls six months of daily price bars.
    * `.pct_change()` turns each close into the percentage it moved from the day before.
    * `.std()` measures how spread out those daily percentages are. That spread is **standard deviation**, and it's what people mean by **volatility** — how much a price bounces around, whichever way.
    * `* (252 ** 0.5)` **annualises** it — 252 is the number of trading days in a year, and this restates a daily-sized number as "how much it would move over a year", the form everyone quotes.

    The code is read-only here. The copy button in the cell header puts it on your clipboard.
  </Step>

  <Step title="Ask a follow-up">
    When the analysis finishes, a toggle appears above the composer: **Analysis** and **Ask**.

    Switch to **Ask** and type *"which of those two had the deeper drawdown, and when?"*. Tradion answers from what's on screen — nothing re-runs and nothing is charged. Use Ask hard before spending another session.
  </Step>

  <Step title="Go deeper with a second analysis">
    For new numbers rather than a new reading of old ones, switch back to **Analysis**:

    > Now add SPY as a baseline and show all three volatility lines on one chart.

    Tradion asks **Start new analysis?**, saves the current one to your session list, and replaces the canvas with fresh cells.
  </Step>

  <Step title="Export the code">
    Once every cell finishes, an **Export** button appears above the canvas offering **Code — Jupyter notebook (.ipynb)**: every completed cell's Python, in order, with its output. Open it in Jupyter, VS Code, or Google Colab and change what you like — swap the tickers, stretch the window, add an indicator. Code that already works is the best place to start learning Python.
  </Step>
</Steps>

## When it doesn't go smoothly

<AccordionGroup>
  <Accordion title="A cell came back red with an Execution Error">
    Tradion repairs failures silently, so red means every repair layer ran out — usually because the data doesn't exist. [The canvas](/research/the-canvas) covers the causes and the fixes.
  </Accordion>

  <Accordion title="It analysed the wrong ticker">
    Ordinary words in capitals can be mistaken for symbols. Write it with a dollar sign — `$NVDA` — to remove the ambiguity.
  </Accordion>

  <Accordion title="The answer was shallower than expected">
    Almost always a vague question. Add the missing ingredient — a window, a benchmark, or a measure — and ask again.
  </Accordion>

  <Accordion title="It says I'm out of quant sessions">
    Analysis-mode messages consume one each. See [usage limits](/concepts/usage-limits) for what each plan includes and when it resets.
  </Accordion>
</AccordionGroup>

## Next

<CardGroup cols={2}>
  <Card title="The canvas in detail" icon="table-layout" href="/research/the-canvas">
    Cell anatomy, automatic repair, the dashboard view, and export.
  </Card>

  <Card title="Templates and scenarios" icon="layer-group" href="/research/templates-and-scenarios">
    365 questions already written, and 18 stress-test scenarios.
  </Card>
</CardGroup>
