Try it
- Ask your AI assistant
- In the Itoflow app
With Itoflow connected to your assistant, paste this into your assistant:Using another client? Copy the prompt with the button on the code block.To test against your own book, replace the 70% SPY.US core with the name of one of your saved portfolios.
Open in Claude
Start this in Claude with the Itoflow plugin.
Open in ChatGPT
Start this in ChatGPT with the Itoflow plugin.
What a result looks like
We ran the prompt above on October 28, 2026. The agent fitted the covariance on three years to October 2024 and held out the two years after. Over the holdout, the GOOGL sleeve raised the book’s return by 17.8 points over SPY alone, and AAPL by 4.6. The AAPL book was less volatile and led in the second year. Neither sleeve lowered the book’s volatility or worst drawdown against SPY alone. The answer said so, and called its pick of GOOGL a conditional preference, not a forecast. An earlier run, published in Combining fundamental quality with quantitative optimization: GOOGL vs AAPL on July 9, 2026, ran a similar request with a 30% sleeve on a 70% S&P 500 core. The S&P 500 alone had a Sharpe ratio of 1.40. With a GOOGL sleeve it rose to 2.54, and with AAPL to 1.92. GOOGL also led on valuation (27.6 times earnings against 35.6) and margins (37.9% against 27.2%). The answer named the trade-off too: the AAPL book had the shallower worst drawdown, 9.1% against 12.4%. The post covers two candidates over a few years of daily data, with an index standing in for real holdings. It is not a stock call.How it’s checked
- The figures come from code. The agent writes the code that measures each book, and the system checks that each number in the answer matches what the code produced. See the research contract.
- A holdout period. The comparison is tested on data the choice didn’t use.
- A second agent reviews it. The independent reviewer reads the files, not a summary.
Limits
- The answer rests on past data and one covariance estimate. It is research, not investment advice.
- Fundamentals come from filings, counted from the day the regulator accepted them.
Next steps
- Measure a book’s factor risk to see which factors a new name adds.
- Quant engine and risk model: the portfolio construction methods behind the answer.