Build and run a study
A study asks one question of a definition's events and answers it across every one of them: How often did the break reach the prior day's high, and does it depend on how far above VWAP it started? You ask in plain words, the agent writes the study, and nothing runs until you approve it.
A study measures events the definition has already found, so run the definition over history first. The Agent offers to when they are missing.
Ask the Agent
Open Agent at the top of the sidebar.
Ask the question, naming the definition and what you want measured: Using my BTC opening range definition, how often did breaks reach the prior day's high before the day ended? Split it by distance from VWAP.
Approve the Plan proposal card. If the definition has no events yet, a Data collection proposal card comes first: click Collect.
When the study is written, Supervised mode shows it first on a Result card with what the agent Checked and Not checked. Click Accept. In Autonomous mode there is no card for this step.
A Study run proposal card asks Run the study on BTC? and shows the Instrument, Timeframe, Range, Events in scope and Profile. Check the event count is what you expect, then click Run.
The chat shows the run's progress. When it finishes, a Study results card appears. Click Open the full report to see it beside the chat.

Approving a run covers its scope. If the study hits a bug, the agent fixes the code and runs it again over the same events without asking a second time.
Test your first trading idea follows this route from the first message to a Forward Insight.
Start from the definition
Open the definition from Tools → Definitions and open the Studies tab.
Click New study. A Build a study box opens with the definition already mentioned.
Type the question and click Build. The Agent opens with your message and works through the steps above. The study is filed under the definition.
Run it on more markets
Open a study from the definition's Studies tab. Results by market has one row per market with its latest numbers, and a row opens that market's report. To run it somewhere new, click Run:
Under Markets, click a suggested market or Search markets.
Under Period, choose Latest year of data, All data or Custom, and drag the handles for a custom period.
Open Advanced to change the timeframe or the study's parameters, when it has any.
Click Run. With several markets the button counts them, such as Run on 3.

A market without events for that period says Collection runs first. The definition runs over that history, then the study runs on its own. One run opens straight onto its report; several land in Results by market.
Change a study
The agent writes and changes study code. Under Code on the study, study.js is read-only. Click Ask the agent for changes, say what should change and click Send. The agent saves a new version, and your past runs stay as they are. Scripting covers how studies are written.
Asking a good question
Name the outcome and the time limit: reached the prior day's high before the session close.
Say how to split it: by direction, by distance from VWAP, by day of week.
Ask for what happened first when both matter: the 1R stop or the 2R target.
When it goes wrong
This study doesn't read a definition yet, so there's nothing to run it on: click Ask the agent and name the definition to use.
The Run study dialog says None of these markets can run in this period: click Details on a market for the reason, then change the period or the market.
A market says Latest run failed: click Ask about this study at the top and ask the agent what went wrong.
Studies are kept on the definition's Studies tab. All shows every profile's studies; pick the profile's name beside it to see only that profile's. How many studies you can keep depends on your plan: 50 on Free and 1,000 on Pro, on a definition or on your own trades. How many runs can go at once is on Runs at once.
