Writing
Scaling trading research into strategies worth running
Agents make it practical to investigate more trading ideas, build more experiments and compare more models. Each additional experiment also creates another opportunity to find a convincing result. Scaling the research means keeping track of what was tried, making the comparisons useful and deciding when the evidence supports taking the next step.
In my trading research, agents implement experiments, run them through a shared backtest analyzer and summarize the comparisons. That saves me from writing each implementation and assembling its analysis by hand. I handle HITL review of the results and code, challenge the assumptions and decide what to keep or test next.
From available data to a testable idea
Research often starts with a plausible explanation for something in the data. The first implementation helps establish whether the idea deserves more attention. A useful next step is to turn that initial observation into a question that an experiment can answer.
Before delegating an experiment, make three things explicit:
- The hypothesis. What information or behavior is expected to improve a trading decision, and why?
- The comparison. What existing approach or simple baseline should the candidate improve on?
- The decision. What evidence would justify keeping the idea, rejecting it or investigating further?
These questions give the agent a bounded investigation and make each result useful. Positive results can support advancing an idea, negative results can close a branch of the research, and mixed or inconclusive results can identify what to test next.
Building an environment that can test the hypothesis
The environment should make results trustworthy without depending on the agent to follow every instruction or describe its work accurately. Constraints enforced by code, controlled data access and independently computed results reduce the opportunities to use forbidden information, change the evaluation or report a result that never occurred.
That requires separating the work the agent can change from the checks used to judge it:
- Enforce the boundaries. Restrict the experiment to permitted data and operations. Keep reserved evaluation data outside the agent’s development access.
- Protect evaluation integrity. Keep the baseline, scoring rules and validation checks outside the changes the agent can make for an experiment.
- Compute and retain the evidence. Produce results through the evaluation code and preserve the inputs, configuration and outputs. The agent’s explanation should refer back to those records.
- Test the controls. Check that prohibited inputs and invalid runs are rejected, and that known cases produce the expected results.
Automating these checks saves me from verifying data access and recalculating reported results for every run. My review can focus on the experiment’s assumptions and the code specific to the hypothesis.
Exploring features and comparing models
After each iteration, the agent updates persistent experiment state with changes, improvements, regressions, open questions and links to the code and results. The orchestrator uses that state to choose the next variation or stop. The full experiment runs through its iteration rounds in an AITL loop, then returns the results for HITL review.
I retain rejected variants alongside successful ones and use PBO to assess selection risk across the search.
A sizing change that made it into the strategy
One experiment tested whether an alternative weighting scheme could improve a strategy, holding portfolio selection and transaction-cost assumptions fixed. The saved comparison covers 60 quarterly portfolio returns across five consecutive three-year windows.
- The improvement was strongest in earlier windows and reversed in the final window, while the aggregate result improved.
- The aggregate tradeoff improved. Annualized mean return increased by 1.09 percentage points while annualized volatility fell by 2.38 points.
- Checks supported adoption. The improvement held up across seeds and under transaction-cost stress tests, alongside the quarterly comparisons.
I incorporated the revised sizing into the strategy after reviewing the aggregate improvement and the weaker final window. Agents handled the implementation, runs and comparisons; I reviewed the evidence and made the adoption decision.
Testing the final candidate
Once the development experiments produce a candidate worth advancing, I freeze its features, model and settings. The next step is a final test on the reserved holdout.
- I review the test before it runs. I check the code and setup to ensure the agent will evaluate the fixed candidate without using the holdout to train or tune it.
- The agent runs the test and returns a verdict. It compares the results with the agreed acceptance criteria and reports what passed, what failed and what remains uncertain.
- I decide whether to use it. I review the evidence and decide whether to adopt a new strategy or incorporate the improvement into an existing one.
With this implemented
- More experiments in less time. Agents build, run and compare them. I review the evidence and decide what advances.
- More chances to find an edge. I can test ideas that would otherwise stay in the backlog.
- More ways to strengthen the book. More strategies that pass review give me more ways to add returns and diversify across less-correlated return streams.