Algovibes tests 1,856 ML trading strategies on Bitcoin and S&P 500 data, using walk-forward validation to show that a top 128% backtest does not survive the full statistical validation funnel.
Key Takeaways
- Testing thousands of strategies guarantees some will look good by chance, so headline backtest returns are nearly meaningless alone.
- Walk-forward validation and realistic transaction costs are essential guardrails against look-ahead bias and overstated performance.
- Simpler linear models produced cleaner risk-adjusted results than complex random forests in this run.
- After full validation, including doubled costs and a final statistical filter, no strategy was convincing enough to call proven.
What the video covers
- The video tests 1,856 machine learning trading strategies on daily Bitcoin and S&P 500 price data, with data running through July 2nd.
- Walk-forward validation trains each model only on past data, tests on the next unseen block, then expands the training window and repeats to avoid look-ahead bias.
- Tested models range from simple baselines (buy and hold, momentum, mean reversion) to logistic regression, ridge classifiers, random forests, gradient boosting, and neural networks.
- The top strategy was logistic regression on Bitcoin with a 0.60 confidence threshold, long-short, returning 128% after costs with a Sharpe of 1.25 and roughly 14% max drawdown.
- Random forests produced larger headline returns (up to about 245%) but with much deeper drawdowns, some exceeding 50%, showing complexity does not guarantee better risk-adjusted results.
- A validation funnel narrowed 1,856 strategies: 701 showed predictive edge, 217 stayed profitable after costs, 201 were stable across walk-forward periods, 161 held across market regimes, and 48 survived doubled transaction costs.
- None of the 48 remaining strategies passed the final statistical significance filter, so none were considered fully validated.
- The creator emphasizes that diagnosing where each strategy fails (no edge, cost drag, instability, regime weakness, cost sensitivity, insufficient evidence) is more useful than a leaderboard.
- The full notebook is shared in a member section so viewers can change assets, timeframes, features, and models to test the results themselves.
Full Transcript — Download SRT & Markdown
Speaker A
I just tested 1,856 machine learning trading strategies on real Bitcoin and S&P 500 data.
Speaker A
And the best one returned 128% after costs, which sounds great. But that number by itself is almost useless because once you test almost 2,000 strategies, of course, something is going to look good. The interesting question is not can we find a
Speaker A
nice-looking backtest? The interesting question is rather does it still look good after we actually try to break it?
Speaker A
That's what this notebook is for. In this video, I'm walking through the machine learning backtest notebook I'm sharing in the member section. It takes real market data, builds features, trains different ML models, turns the predictions into trading rules, and then
Speaker A
tests those strategies over time. The full notebook is available inside the member section, so you can run the same tests yourself, change the assets, models, features, and time frames, and see exactly which ideas survive the validation funnel.
Speaker A
So, we're not just measuring prediction accuracy in a vacuum. We're asking whether those predictions can actually become trades. The first thing the notebook shows is the data. For this run, I used Bitcoin and S&P 500 prices on daily candles with data running all
Speaker A
the way through July 2nd. Then we get to one of the most important parts, the walk-forward validation.
Speaker A
The table on screen is the Bitcoin example, but the same walk-forward process is applied to both Bitcoin and the S&P.
Speaker A
The important thing is the structure. Each model is trained only on past data, then tested on the next unseen block of future data, then the training window expands, and the process repeats. So, later folds have more historical context, but they also face a different
Speaker A
market environment. That gives us two checks at once. We can see whether adding more history improves the model, and we can see whether the signal keeps working as the market changes. This is the guardrail that stops the backtest
Speaker A
from quietly mixing past and future together. That part matters because markets change. A model that looks clever in one period can be completely useless in the next one. Now, the models themselves are not exotic. That's actually one of the things I like about
Speaker A
this run. The notebook tests simple baselines like buy and hold, momentum, and mean reversion. Then it tests machine learning models like logistic regression, ridge classifiers, random forests, gradient boosting, and finally neural networks.
Speaker A
Each model prediction gets turned into an actual trading strategy. Sometimes the strategy goes long or flat, sometimes it can go long and short, sometimes it only trades when the model is confident enough. And every version gets tested with realistic transaction
Speaker A
costs. So, what happened? The top strategy was surprisingly simple. It was logistic regression on Bitcoin using price features, trading long and short with a 0.60 confidence threshold. Across the walk-forward test periods, it made 128% after costs with a sharp of 1.25,
Speaker A
a max drawdown of about 14%, and 123 trades. That's interesting, not because it proves we found the perfect Bitcoin strategy, but because it shows a simple classifier was able to produce a pretty clean trading signal on the walk-forward
Speaker A
sample. The second best result was also logistic regression on Bitcoin, but long flat instead of long short. That one made about 104%.
Speaker A
Third was a ridge classifier, again on Bitcoin, making about 90%. Then the random forest model showed up with bigger headline returns. One made about 166%.
Speaker A
Another made about 245%, but the drawdowns were much uglier. One of them was down more than 50% at its worst point. And this is one of the first useful takeaways. The most complicated model did not automatically produce the best trading strategy.
Speaker A
The random forests made more money in some cases, but they also took on much more pain. The simpler linear models had cleaner risk-adjusted results, but the leaderboard is only the start. The notebook then pushes every strategy through a validation funnel, and this is
Speaker A
where it gets more honest. Out of 1,856 strategies, 701 showed some predictive edge. After realistic costs, 217 were still profitable. After checking whether the results were stable across the walk-forward periods, 201 remained.
Speaker A
After checking different market regimes, 161 were left. Then the notebook doubled the transaction costs. Only 48 strategies survived that. Another thing worth paying attention to is where the strategies fail. A strategy that dies immediately because it has no predictive
Speaker A
edge is not very interesting. But a strategy that survives costs, survives different market periods, survives regime checks, and only fails at the final statistical filter is different.
Speaker A
That does not mean it is tradeable yet, but it tells us the signal is close enough to study more carefully. Those are are kinds of failures I actually care about, because they point toward what needs to be improved next. So, at
Speaker A
this point, we still have 48 strategies that look pretty decent. They're not just random leaderboard winners. They made money after costs, they were stable over time, they worked across regimes, and they survived a harsher cost assumption.
Speaker A
But, then comes the final check. After testing this many strategies, are any of those 48 strong enough to be statistically convincing? And the answer was no. None of them survived the final statistical filter. That's the result. And honestly,
Speaker A
I think that's more useful than pretending the 128% strategy is ready to trade. The notebook found something interesting. Bitcoin signals, especially from simple classifiers, did show up in the walk-forward tests, but it did not find enough evidence to call the
Speaker A
strategy fully validated. That's the difference between a good-looking ML backtest and an actual research process.
Speaker A
A normal backtest would stop at the leaderboard. This It shows you where each strategy fails. No predictive edge, too much cost drag, unstable performance, weak regime behavior, cost sensitivity, or just not enough statistical evidence. And that's why I'm
Speaker A
sharing it in the member section. You can run the same notebook yourself, change the assets, add more markets, test other timeframes, swap in your own features, compare models, and see whether the results get stronger or fall apart. Maybe hourly crypto gives more
Speaker A
signal. Maybe simple models beat complex ones. Maybe long-short adds too much turnover. Maybe the edge only exists in certain regimes. Tell me what you're interested in testing in the comments below, and I'll use that to decide what experiments
Speaker A
to run next. The point is, you can actually test those questions instead of guessing. So, the honest takeaway from this run is machine learning did find interesting Bitcoin trading signals.
Speaker A
The top walk-forward results looked strong. But, after the full validation process, they were not strong enough to call proven.
Speaker A
Thanks a lot for watching, and I am looking forward to your suggestions and comments, and seeing you in the next one.
Topics:machine learning tradingbacktestingwalk-forward validationBitcoinS&P 500overfittingalgorithmic tradingtransaction costsSharpe ratioquantitative finance











