Large Language Models and Stock Investing: Is the Human Factor Required?

Spain's market regulator tested ChatGPT, Gemini, DeepSeek and Perplexity as stock pickers for ten months. Simple questions did not beat the market; structured prompts plus human review did.

Research paper2026IntermediateFree

By Crisóstomo & Mykhalyuk, CNMV Working Paper No. 96

Open the PDF

What it is

Two researchers at the CNMV (Spain's securities regulator) ran a live test from April 2025 to January 2026. Each month they asked four AI assistants (ChatGPT, Gemini, DeepSeek and Perplexity) to score all 35 stocks in the Ibex 35, then built a portfolio that bought the five best-scored stocks and sold short the five worst. They compared three ways of asking: a simple question ("which stocks will outperform?"), a structured prompt with fixed metrics and weights (valuation, growth, financial health, technicals, sector risk and sentiment), and a chain-of-thought process where a human checked and corrected each step. They also tested feeding the models official filings from the CNMV.

In more depth

The study is one of the first by a market regulator to test chatbots as stock pickers in real time rather than on historical data, which avoids the risk that the models simply 'remember' past prices. The authors asked several popular models to build portfolios of Spanish stocks at regular intervals and tracked how they performed against the market.

The main lesson for investors is about process: the quality of the answer depends heavily on how you ask, and a human who checks the reasoning and the data adds real value. The paper also documents typical failure modes, such as made-up figures and outdated information, which is why grounding the AI in official documents helps.

Key takeaways

  • Simple questions had no real predictive power: about 0.35% excess return per month, statistically no different from zero, and directional accuracy of 0.554, barely above a coin flip.
  • Structured prompts lifted the average excess return to 2.24% per month, and human-reviewed chain-of-thought to 3.04% per month, with all four models significant under that setup.
  • The models made recurring mistakes: data for the wrong company (Amadeus Fire AG instead of Amadeus IT Group), invented prices, treating a low P/E or low debt as bad, mixing currencies and fiscal periods, and "fixing" errors without actually fixing them.
  • Grounding the analysis in official regulatory filings improved results, for example from 0.35% to 1.02% monthly excess return for simple prompts.

Who it is for

Anyone using ChatGPT, Gemini or Perplexity to pick stocks. It shows what goes wrong, and gives a concrete structured prompt (in its annex) you can adapt.

How to get the most out of it

  1. Read the summary and the conclusions first, then the section on prompting strategies.
  2. Compare your own way of using ChatGPT or Gemini with the 'structured' prompts the authors tested.
  3. Use it as a checklist: always verify figures against company filings before acting on an AI answer.
Keep in mind: Ten months, one market (the Ibex 35) and a long-short portfolio of ten stocks is a short, narrow test. The authors write in a personal capacity, not on behalf of the CNMV. Past results are no guarantee.

Large Language Models and Stock Investing: Is…: FAQ

Did ChatGPT beat the stock market in the CNMV study?

Not with simple questions. Results improved with structured prompts and improved further when a human reviewed the AI output, but the paper is clear that AI is a support tool, not a replacement for analysis.

Is the CNMV paper available in English?

Yes. The working paper is published in English as a free PDF on the CNMV website.

New free resources, in your inbox Limited-time deals, new tools and free resources by email. No spam.

Summary written by the InvestAITools team. We have no commercial relationship with this resource and the link above is not an affiliate link. Nothing here is financial advice.