Blog, Strategies

Market Pulse: How to get fooled by AI when building a strategy

Posted by Erik Martin Hansén

On Fridays, the focus is on systematic stock strategies, strategies with clear rules for when we buy and sell, and how we manage positions and risk.

Last week we tested a trend-following strategy from the book Automated Stock Trading Systems, first on American stocks where it held strong even six years after the book was published, then on Swedish stocks where the results were significantly weaker. I ended with a cliffhanger: I had a computer optimize a significantly better figure for the Swedish market, over 20 percent in annual returns. The question I left you with was whether that figure could be trusted.

This week I’m giving you the answer, and it’s about more than just a single strategy. We live in an era where AI tools make it faster and easier than ever to test thousands of combinations and find an impressive curve. But a tool that finds patterns for you can’t always tell you whether the pattern is real or just a coincidence that happened to look good in history. That’s exactly the trap we’re walking through today, concretely, with real numbers, not just as a passing warning.

We show what actually happened when we tested the ”winning” optimization on the period that matters most. Then we show the path that actually works, fewer parameters, a genuine separation between the data we optimize on and the data we test on, and why a strategy that looks a little worse on paper is sometimes the one you should trust the most.

In today's episode I'll go over:

  1. Conclusion on the cliffhanger, did the optimized strategy hold?
  2. The fundamental trap, why more parameters are not better, and what it means for those of you who use AI tools
  3. A genuine pattern in the noise, an insight that actually holds true
  4. The rugged road, and how it performed when it really mattered

Create an account
to read the full article

Create an account to read the full article

This article is part of our analysis service. Create an account to get full access to analysis and our strategies.

If you already have an account, you can

Risk Warning:

Investing in financial markets always involves risk. Historical performance is no guarantee of future results, and there is a possibility that you may lose all or part of your invested capital. Our analyses and indicators are based on historical data and statistical models, but these models cannot predict future market movements with complete certainty.

The value of investments may fluctuate significantly due to market conditions, company-specific factors and global economic events. It is important that you carefully consider your financial situation and your ability to bear potential losses before investing. The Service does not provide personal investment advice and recommends that you seek independent financial advice before making any investment decisions.

NeuroQuant employees may own or trade securities mentioned in analyses or based on indicators used in our services. This may potentially create conflicts of interest, but we strive for full transparency and professional integrity in all our activities. Following our analyses and indicators involves increased risk if the market moves in an unpredictable manner. You should only invest money that you are prepared to lose and understand that past performance, analyses or models provided through the service do not guarantee future results.

Posted by Erik Martin Hansén
After studying at Uppsala University, Erik Hansén has worked in the financial industry since 2007 at several brokerage firms and traded privately. In his role as an analyst, Erik has written highly regarded market letters.

Categories

Latest blog posts