返回资讯中心
外部精选
软件工程
#开发者实时流

散户投资者用AI复盘十年投资经验并回测规则

来源标题:What ten years as a retail investor taught me, and how AI helped me test it

一位有十年经验的散户投资者借助AI将个人投资直觉转化为书面规则,在大公司上运行并用16年数据回测。结果发现指数基金很难被战胜,其中一条直觉规则导致亏损。他还区分了哪些规则有证据支撑、哪些只是让自己安心的心理安慰。

Hacker News 最新horatio_thomas2026/11/27 · 今天28 分钟阅读

以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。

TL;DR: I've been a retail investor for over ten years. I grew up in the financial crisis, never fully trusted index funds, and always wanted to understand what I owned. This month I used AI to turn those instincts into written rules, run them over every large company, and backtest them on 16 years of data. The index turned out to be very hard to beat. One of my instincts lost money. And I learned which of my rules rest on evidence and which are simply what lets me sleep at night.

Nothing here is advice. It's what I've learned about my own investing, and the companies I name are what my own rules produced on one day, November 27, 2026.

I grew up in the financial crisis. I watched what happened to people who thought their money was safe, and it left me with a lasting distrust of the idea that you can buy the whole market, look away, and be fine.

So from the start I wanted to understand the companies I owned. What they sell, what they earn, what they're worth. I wanted that so I could sleep soundly at night.

Later, I came into a large sum of money from my time at Tinder. The textbook answer was to put all of it into a market-weighted index fund at once. I couldn't do it. I was too nervous to hand everything to a fund I didn't understand, at a price I couldn't judge, on a single day.

Looking back, that is perhaps exactly what I should have done.

The more I learn about investing, the more I respect how good a simple market index is. It's cheap, it's diversified, and it quietly owns the winners without anyone having to pick them.

Two things I believed early on turned out to be weaker than I thought.

I over-weighted P/E. For years I looked at the price of a company against its profit and concluded the whole market was expensive. The past decade has had high P/E ratios. But part of that is because the companies that dominate the market now are growing much faster than the ones that dominated it before. A price that looks high against today's profit can be reasonable against where the profit is going.

I was uneasy about concentration. The big indexes lean heavily on a handful of companies, and that bothered me. But those companies are also where a very large share of the profit is. The weighting follows the money.

So why don't I just buy the index? Because I didn't know what I was holding. When the market fell, I had no idea what the companies inside were worth or how much further the index could go. That made it very hard for me to stay invested, and an investment you can't hold through a fall isn't worth much.

I've made my peace with this. Even if I end up with returns below the market, I know what I own and I understand the risk I'm taking. For me, that's the trade.

The other thing ten years taught me is about entering a position.

I rarely put a full allocation in at once now. I'm not claiming that spreading it out earns more. On average it probably doesn't, since markets rise more often than they fall. For me it's a tactical and emotional decision, a way to manage myself.

If I feel the pull of a stock that's running, I put in a small amount. Now I have skin in the game. If the price falls, I can add more at a better level. If it keeps rising, at least I own some.

It also solves the opposite problem: "this looks expensive, I'll wait until it's cheap." Waiting feels disciplined, but it can mean missing the whole move. A starter position gives me the option to buy more at a better price without betting everything on that price ever arriving.

For most of those ten years, my process was manual. A company would come to mind, I'd look up its numbers, decide whether I liked it at that price, and buy an amount that felt about right.

I knew two things were wrong with that. I was only ever looking at the handful of companies I happened to think of. And "an amount that felt about right" is not a method.

This month I sat down with Claude and turned what I believed into rules a computer could check.

"Avoid companies priced high without the growth to back it" became: leave a company out when its price is more than 25 times its profit and also more than 3 times its sales growth in percent. That is the lesson about P/E, written down. A high P/E is fine if the growth is there.

"An amount that felt about right" became a formula. It starts from how big the company is, then adjusts for how much of its profit arrives as cash and how steady its price is. What to buy is the gap between that target and what I already hold.

And before any of it, a rule for how much to invest at all. I work for myself and my income moves around, so I keep a set number of years of spending in Treasury bills, after counting income, dividends and interest. Everything above that goes into stocks. Near a market high I hold more in reserve, and after a fall I hold less. I built Moolot to answer that question for myself: how long will my money last?

Then the rules ran over every large company listed in the US, about 900 of them, every day.

The first result was humbling. Of the 102 companies that passed, I owned 33. More than a third of the plan by weight was in companies I had never looked at. They weren't obscure. They fit my own criteria, and I'd missed them because they never came to mind.

A rule can sound sensible and still lose money. So we backtested: 16 years of monthly data, the rules applied as if I'd followed them all along, compared with the S&P 500.

The index is hard to beat. My rules came out about a point and a half a year ahead in the test. Then we removed one company from the data and ran it again, and about two thirds of that edge disappeared. It was Apple. So most of my "edge" was one stock. That is a strong argument for the index, and it matches what I'd slowly come to believe anyway.

My worry about concentration cost money. I wanted a cap on how much any one company could be. We tested caps from 2% to 25%. Every one lowered the return, and none made the worst fall smaller. The same instinct that made me uneasy about the index would have hurt me in my own portfolio. I dropped the cap.

My instinct about run-ups was wrong. Looking through the plan, I kept flinching at stocks trading far above their own history. I asked for a rule: no new money for those. Tested alone, it lost between 0.7 and 1.0 points a year. Companies above their own norm mostly kept going. It only stopped hurting when I added an exception: a run-up is fine if growth explains it. That's the P/E lesson again, from another direction.

The boring rule was the best one. Banks and insurers don't fit a rule about sales growth, so they'd been left alone. Leaving out the ones priced above 15 times their profit added 0.7 points a year, and it held up in the months we hadn't used to pick the number.

A backtest can kill a rule that clearly hurts. It did that for me three times. It can show where a result really comes from. And if you make it show the noise next to every number, it tells you which of your beliefs rest on evidence and which are preference.

So some decisions stayed mine, and one went against the test. My first version of the growth rule was loose enough to let Apple through, and the backtest liked it that way, because Apple had been such a winner. But at 37 times profit for about 11% growth, Apple wasn't what I meant by growth at a reasonable price. So I tightened the rule to say what I meant, and Apple no longer passed. I accepted that, even for the stock that had carried the result. I also kept a version of the run-up rule, with the growth exception, even though the test showed no benefit. I know myself, and I buy more calmly with it.

That is the same trade I described at the start. I'm building something I understand well enough to hold, and I accept that it may return less.

I was skeptical about AI at first, both the technology and the stocks. A few years ago the chip companies looked very expensive to me, priced for a future that hadn't shown up in their numbers.

Two things have changed. The fundamentals have been catching up with the prices. And lately sentiment has turned: in my own plan today, the AI chip companies sit between 30% and 58% below their highs, while analysts' estimates of their earnings have held.

Meanwhile I've become more bullish on AI than I've ever been, mostly from using it every day, including for this. A business I believe in, with prices falling on sentiment while the earnings hold, is the situation my whole approach is built to look for. Whether I'm right is a separate question, and I'm entering the way I described above: in pieces.

I couldn't have done this alone in two days. An idea went from a sentence to a 16-year test across dozens of settings in minutes. Bad ideas died the same afternoon instead of living in my head for another year.

But Claude got my rules wrong more than once. Its first version of "priced high without growth" let in companies at nearly 40 times profit. I caught it by reading the list and thinking, that's not what I meant. It added an exception for financial companies that I never asked for. It made confident predictions that turned out wrong.

The data was worse. One company's figures arrived in pesos and were read as dollars, which gave it $32 trillion of revenue and a place near the top of my plan for half an hour. Another was counted twice because it has two listings with slightly different names.

Every one of those was caught the same way: I looked at the output and something didn't look right. The AI was fast at building and testing. My job was to doubt the result. Ten years of looking at companies turned out to be what made that possible.

This week an AI investing app called Ulys announced $17 million in total funding. You tell it what you believe, in your own words, and it builds a basket of assets around the idea.

That's the same starting point as mine, and turning a hunch into something you can act on is a real problem. But reading their site, I couldn't find the parts that took me ten years to learn. I found nothing about what the companies cost relative to what they earn, whether the idea had ever been tested, or how much of your money should be invested in the first place. I haven't used the app, so there may be more to it than the site describes.

Those are the three questions it took me ten years to learn to ask.

Today, the part of Moolot anyone can use is the runway: what you have, what you spend, and how long it lasts. The strategy side is something I built for my own portfolio. The rules are mine, and the backtests are scripts on my laptop.

I'm not sure whether to turn it into a product. If I did, it would help you write down your own beliefs as rules, run them over every large company, test them, and tell you plainly when a test can't answer your question. What to buy would stay your decision. It would be for people like me, who can only hold what they understand.

If that sounds useful, leave your email here and I'll tell you if it opens. If enough people want it, I'll build it properly. If not, I'll keep using it myself, which was the point all along.

A note on how this was written: the investing history, ideas, decisions and mistakes are mine. I did the research and wrote this post together with Claude, which built the rules and backtests with me, checked the numbers, and helped tighten the wording.

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →