Claude for Trading: A Research Workflow to a Paper Agent

A step-by-step Claude for trading workflow: pre-register a hypothesis, search the catalog, backtest, run experiments, freeze a winner and paper-test it.

Trigr Research6 min read
On this page
  1. Why use Claude for trading research at all?
  2. How do you connect Claude to Trigr?
  3. What does the research workflow look like?
  4. How do you freeze the winner and test it honestly?
  5. How does the paper agent step work?
  6. Who does what?
  7. Next steps

TL;DR: Connect Claude or Claude Code to Trigr's MCP server, then run research as a fixed pipeline: read account context, pre-register one hypothesis with costs and a trial budget, search the catalog, build one strategy, test variants as labelled experiments, freeze the winner, and let Claude create a paused paper agent. Claude does the tedious work; you keep the decisions, and nothing goes live without you.

Why use Claude for trading research at all?

Claude is good at the parts of quant research that are tedious for humans: translating an idea into exact parameters, keeping track of which variants were tried, reading hundreds of trades for patterns, and writing up results. It is not good at knowing what a backtest would return without running one. No language model is.

That is why the setup matters more than the prompt. Connected to a real engine through the Model Context Protocol, Claude calls tools and reports real numbers. Left alone, it produces plausible fiction. The workflow below keeps Claude on the right side of that line.

How do you connect Claude to Trigr?

Trigr runs one remote MCP server at https://trigr.xyz/mcp.

  • Claude on the web or desktop: add a custom connector with that URL, then connect. Custom connectors are available on Claude's Free, Pro, Max, Team and Enterprise plans, with Free limited to one.
  • Claude Code: run claude mcp add --transport http --scope user trigr https://trigr.xyz/mcp, then authenticate from the /mcp menu.

Authorization happens in your browser and creates a revocable credential, so there is no API key to paste anywhere. You choose an approval mode per connection: manual, where Trigr asks for a browser confirmation before each consequential action, or autonomous, where the connection continues without prompts. Both use a ten-minute, single-use authorization bound to the exact tool arguments. The full setup, including Codex, is in connecting Claude Code and Codex to Trigr.

In Claude Code, Trigr's reusable prompts appear as slash commands: /mcp__trigr__build_strategy, /mcp__trigr__improve_strategy and /mcp__trigr__research_marketplace. In Claude's chat apps you can simply say "Use Trigr to build a strategy."

What does the research workflow look like?

Once connected, run every research session through the same five steps. The order matters more than the wording of any single prompt.

Step 1: Start with account context

Every Trigr workflow begins by reading your plan, credits, saved-strategy quota, existing strategies and agent summaries. This is cheap and prevents the most common waste: a research plan that needs 40 backtests on an account with credits for 10, or a new draft that duplicates a strategy you already have.

Ask Claude to summarize what it found before proposing anything.

Step 2: Pre-register the hypothesis

This is the step people skip, and it is the one that makes the rest meaningful. Before any backtest, write down with Claude:

  • The idea, in one sentence and with a mechanism: "ETH longs work better when funding is negative, because crowded shorts get squeezed."
  • Market and timeframe.
  • Costs: a slippage assumption in basis points per fill and whether to include funding.
  • A trial budget: the maximum number of variants you will test, for example eight.
  • Ranking metric and minimum evidence: for example risk-adjusted return with a minimum trade count, not the highest raw return.
  • Pass or fail criteria, stated before you see results.

The reason is statistical. Bailey and López de Prado's work on the Deflated Sharpe Ratio shows that the best Sharpe ratio across many trials is biased upward by the number of trials. An assistant that can run 50 variants in an hour will find an impressive one by chance. A written budget keeps the search small and the result interpretable.

Step 3: Search the catalog and build one strategy

Claude should never guess an indicator name or a data feed. Trigr's capability catalog lists the assets, timeframes, indicators, data sources and parameter ranges that actually exist, and Claude can check point-in-time data coverage for a market before relying on a series. If your idea needs ETH funding on a 4H timeframe, Claude looks up the exact source id and its history first.

Then Claude validates the node graph and saves one draft. Open it in Studio and read it: the trigger, each filter, and the RISK node's size, leverage, direction and exits. Anything Claude saves appears in the same account you use in the app.

Step 4: Backtest gross, then net

Claude runs a first backtest. Trigr applies trading fees and the builder fee to every run, so the first result is gross of slippage and funding only. Claude then runs it again with your pre-registered slippage and funding. Report the two side by side.

Fills happen at the next bar's open after a signal, every feature uses only data available at the bar's close, and when a take-profit and stop-loss are both touched inside one bar the engine replays 5-minute bars to see which came first, with the stop winning if it is still ambiguous. Those rules are explained in point-in-time backtesting.

Step 5: Iterate with experiments, not new strategies

Every change inside your budget, such as a tighter stop, an added filter or a different EMA length, runs as an experiment. Claude calls trigr_run_backtest with the strategy's id and an experimentLabel, and the run is recorded in that strategy's version history without touching the saved recipe. trigr_get_backtest_result lists every run with its label, so the trial count stays in plain view. A new market, timeframe or signal family is a new strategy; everything else is an experiment. The reasoning is in iterating on a strategy with AI experiments.

Have Claude page through the trade log of the leading variant; stored runs and their trades can be read for free. Two units to keep straight: trade prices are reference prices before slippage, and per-trade P&L is in units of an account that starts at 100, not dollars.

How do you freeze the winner and test it honestly?

When the budget is spent, pick one winner and freeze it: record the exact graph and cost assumptions. Do not swap it for the runner-up after seeing more results.

Then look for evidence the search did not touch. Be precise here, because it is easy to fool yourself:

Source Is it out-of-sample?
Standard backtest, full history No. It is the data you selected on.
Studio's shaded trailing 25% No. It is a recent-period diagnostic, not a holdout.
Bounded backtest on a past window No, not in this workflow: every full-history backtest and experiment has already covered it. Bounded runs are also not saved to Studio history.
ML optimization Yes, for the model: anchored, purged walk-forward out-of-sample results, plus DSR and PBO.
Paper agent going forward Yes. The data did not exist when you chose the strategy.

If the frozen winner fails its test, the idea is rejected. Re-tuning against the same window turns it into research data.

How does the paper agent step work?

The last step Claude can take is creating a paper agent in a paused state, with your frozen strategy in a slot and a capital amount. It can also edit the agent's name, capital or paused state. It cannot start execution, place a live trade, withdraw funds or edit exchange credentials; those capabilities are not exposed over MCP at all.

You review the agent in the Trigr app and start it yourself. Paper agents fill at the current Hyperliquid price and deduct a 4.5 bps taker fee plus the builder fee; they model no slippage and no funding. The guide to paper trading agents covers how long to run one and what to compare.

Who does what?

Task Claude You
Account context, catalog lookups, exact ids Yes Review
Hypothesis, costs, trial budget Drafts Decides
Drafting the graph, running backtests Yes, within approvals Reads the graph
Reading trade logs, summarizing results Yes Spot-checks
Choosing and freezing the winner Recommends Decides
Paper agent Creates it paused Starts it
Live trading Not possible over MCP Deploys in the app

Backtests are not guarantees; perps are leveraged and can lose more than expected.

Next steps

Use the guided MCP setup to connect Claude, then start with the build prompt and a written trial budget. The MCP server guide lists every tool and limit.

Frequently asked questions

Can Claude trade for me through Trigr?

No. Through Trigr's MCP server Claude can research, backtest, run experiments, save drafts and create a paper agent in a paused state. It cannot start execution, place a live trade or withdraw funds; those steps stay with you in the Trigr app.

Which Claude products work with Trigr?

Claude on the web and desktop through a custom connector, and Claude Code through the HTTP MCP transport. Both authorize in the browser, so there is no API key to copy.

Why pre-register a hypothesis before backtesting with Claude?

Because an assistant can test dozens of variants in minutes, and the best of many backtests is inflated by luck. Writing down the idea, costs, trial budget and pass criteria first keeps the search small and the final result interpretable.

What counts as out-of-sample evidence in this workflow?

A standard Trigr backtest uses the full available history and has no holdout. Out-of-sample evidence comes from ML optimization's anchored, purged walk-forward results, or from forward-testing a frozen winner on a paper agent with data that did not exist during research.

Put the idea to an honest test.

Describe a strategy in plain English or from your own AI assistant, backtest it on point-in-time data, and forward-test it on paper before any real money is involved.