Editor's Note

This project started as a learning exercise — I wanted to build something real with Python, statistical modeling, data pipelines, and machine learning.

I decided to take my boring investment philosophy — buy and hold cheap index funds — and do something interesting with it. This tool asks one additional question: for extra capital on the sidelines, is now a particularly good or poor time to deploy it into that same, existing philosophy?

Stack Python · DuckDB · FRED · yfinance · Shiller CAPE · scikit-learn · FastAPI · Claude API
Investment Entry Quality Signal

The Oracle Doesn't Know Either

Loading...

"My advice to the trustee couldn't be more simple: Put 10% of the cash in short-term government bonds and 90% in a very low-cost S&P 500 index fund. (I suggest Vanguard's.)"

— Warren Buffett, 2013 Annual Letter to Shareholders

Continue regular S&P 500 index contributions on schedule. The signal below applies only to extra capital beyond your regular contributions.




Pick any date from January 1995 onward. See the signal at that moment — and what $5,000 deployed then would be worth today.

Honest limitations: ~100 non-overlapping 10-year windows in full history. Quintile calibration is in-sample and indicative. Backtest: Oracle vs DCA = +7 bps (no meaningful improvement). The tool never recommends selling, pausing contributions, or holding cash beyond 12 months.

Built by Carlos Portocarrero · ask.carlosportocarrero.com

← All Projects