ATMResearch
Join Overfit - free

StatOasis · by Ali Casey

Stop guessing. Start building.

Research, build, test, combine, deploy: the loop that turns trader confidence into conviction.

Get the best trading research in your inbox.

Running a quick security check before this can be sent.

Delivered +2 times a month - when the work is ready, not on a calendar.I'll never sell your address.Unsubscribe in one click, any time.

Turn knowledge into process.|

Happy members

Is this you?

live trading beginsIn-sampletraders' backtestOut-of-sampletraders' realitypeaklive trading beginsIn-sampletraders' backtestOut-of-sampletraders' realityIn-sampletraders' backtestOut-of-sampletraders' realitylossgain
Illustrative: a clean backtest is a hypothesis, not proof.
  • 5,800+read OverFitnewsletter
  • 3,500+members inthe community
  • 23,800+subscriberson YouTube
  • 300+ATM studentsglobally
  • 440+videoson YouTube
  • 30+Q&A video sessionsin the community
  • 40+deep diveresearch articles
  • 5,800+read OverFitnewsletter
  • 3,500+members inthe community
  • 23,800+subscriberson YouTube
  • 300+ATM studentsglobally
  • 440+videoson YouTube
  • 30+Q&A video sessionsin the community
  • 40+deep diveresearch articles

The loop most traders skip three steps of.

Five stages, running as a loop - every live strategy feeds the next round of research. The red shortcut is the one most traders take instead.

Most traders follow this path and call it done.
1

Research

Start from a behavioral hypothesis, not a prediction.

2

Build

Turn the hypothesis into rules, not a curve fit.

3

Robustness test

Out-of-sample, walk-forward, across regimes the optimizer never saw.

4

Portfolio construction

Combine strategies that fail at different times.

5

Live deployment

Size it, monitor it, plan the drawdown before it comes.

Most traders follow this path and call it done.

  1. 1

    Research

    Start from a behavioral hypothesis, not a prediction.

  2. 2

    Build

    Turn the hypothesis into rules, not a curve fit.

    ↷ Most traders follow this path and call it done.

  3. 3

    Robustness test

    Out-of-sample, walk-forward, across regimes the optimizer never saw.

  4. 4

    Portfolio construction

    Combine strategies that fail at different times.

  5. 5

    Live deployment

    Size it, monitor it, plan the drawdown before it comes.

back to research

Can you survive a decade of real markets?

A decade of markets. Five decisions. About eight minutes. See how your instincts hold up against the regimes that broke real strategies, then see the trading personality your choices reveal.

Start: Survive the Decade

I'm Ali Casey.

I build systematic trading strategies and teach the workflow behind them. Not a content creator. A system builder who happens to teach.

More about me →
Portrait of Ali Casey

Happy Members

5.0
3.5K+

Algo trader since 2014

Here is how I can help you.

Overfit - the newsletter logoOverfit - the newsletter logo

Overfit - the newsletter

Skip the hype. Trust the data. One practical, evidence-driven takeaway per issue: strategy testing, portfolio construction, market structure, and the mechanics behind systematic trading - every claim with the backtest behind it. Publishing since 2024, formerly The AlgoTrader.

Learn more→
Algo Trading Masterclass logoAlgo Trading Masterclass logo

Algo Trading Masterclass

The complete build-a-system workflow, taught end to end: finding an edge, testing it honestly, assembling strategies into a portfolio, and putting it live - the same process behind every study I publish. Currently open as a waitlist.

Learn more→

Community

Where builders share strategies, code, and feedback. Get plugins, correlation book, indicators and more. Free to join today.

Learn more→

Digital Products

Everything you can download and use the same day: books, strategy packs, and tools - starting with 36 Ways to Buy the Dip, backtested mean-reversion entries for systematic dip-buying, every variant tested, every result shown. Listed on the products page with everything else StatOasis makes.

Learn more→
AlgoChef logoAlgoChef logo

AlgoChef

The validation layer I built for the step most traders skip: pressure-testing a strategy before it risks real money. Launched 2026.

Learn more→

Latest from StatOasis YouTube channel

Donchian Channel Strategy: 283 of 300 Made Money. Why?

Donchian Channel Strategy: 283 of 300 Made Money. Why?

Oct 26, 2026

I Fixed the Rainbow Moving Average. It Got Noisier

I Fixed the Rainbow Moving Average. It Got Noisier

Oct 5, 2026

70,000 Monte Carlo Sims Said Yes. Walk-Forward Matrix Said No.

70,000 Monte Carlo Sims Said Yes. Walk-Forward Matrix Said No.

Sep 14, 2026

Latest from StatOasis X channel

Toby Crabel's up and down thrust patterns come with rules, working code, three settings and two equity curves. Not one measured statistic. I have now run them 17,424 ways on eight markets. 🧵

Oct 30, 2026 · 60 impressions · 2 reactions
StatOasis card. Rainbow moving average: spacing is a coin flip. 87 of 165 matched tests won by the ratio-spaced rainbow on return to drawdown, pullback signal, long and short, 11 futures, 2005 to 2026.

The rainbow moving average is spaced 10, 20, 30, 40, 50. That looked like a math error to me. So I fixed it, and tested the fix on 11 futures, 2005 to 2026. It got noisier, and no better.

Oct 29, 2026 · 59 impressions · 1 reaction
StatOasis card. Against buy-and-hold. Better risk-adjusted. Less money. 4 of 6 Better risk-adjusted return; 6 of 6 Smaller worst drawdown; 0 of 6 More profit than holding; 43% Time in the market.

Buy the week after a down week. Sell that week's close. 22,680 backtests, 6 index markets, 1993-2026: Smaller worst drawdown than holding on 6 of 6. Better return-per-drawdown on 4 of 6. Less money than holding on all 6. SPY: $93,273 vs $551,738. https://statoasis.com/overfit/research/a-simple-weekly-mean-reversion-strategy-for-index-futures

Oct 28, 2026 · 84 impressions · 2 reactions

Latest from LinkedIn

Card titled A regime, not a trigger: 411 COT extreme crossings from 2006 to 2025, 3.0 to 4.4 per year per side per group, a mean extreme run of 3.6 to 5.2 weekly reports, and COT updating once a week. A regime that arrives a few times a year, so good context but a poor trigger.

Before you set an alert for COT extremes, know their rhythm. In our 4,889-backtest sweep of Larry Williams' COT index on the E-mini S&P 500 (2006-2025), one practical detail rarely gets mentioned: how often the signal everyone talks about actually occurs. We counted every extreme crossing, a trader group's COT index reaching the classic Williams levels (75 and above for bull, 25 and below for bear) at a 24-week lookback, with each report counted from its release day: - 411 extreme crossings, across all three groups and both sides. - Each group hit an extreme 3.0 to 4.4 times per year, per side. - Once entered, an extreme run lasted 3.6 to 5.2 weekly reports on average. So a COT extreme behaves less like a signal firing and more like a regime arriving: it shows up a few times a year, then holds for about a month. That cadence is one reason for the central trade-off. Layer a slow, once-a-week gate onto a fast 2-to-3 day RSI(2) swing strategy and the gate sits closed most days. Across the filtered variants, the median trade count was 95 against the unfiltered baseline's 406. The median CAR/MaxDD, a separate median, was 0.07 against 0.51. None of the 4,888 filtered variants beat the baseline on that measure. Slow signals make good context. Poor triggers. The COT report is a calendar, not a stopwatch. Full study: https://statoasis.com/overfit/research/larry-williams-cot-filter

Oct 30, 2026
StatOasis card. Rainbow moving average: spacing is a coin flip. 87 of 165 matched tests won by the ratio-spaced rainbow on return to drawdown, pullback signal, long and short, 11 futures, 2005 to 2026.

87 of 165. That is how often the "fixed" rainbow moving average beat the classic one. The classic rainbow stacks five moving averages evenly: 10, 20, 30, 40, 50. The obvious fix is to space them by one constant ratio instead, 10, 15, 22, 33, 50, so every step is the same +49.5%. I tested both on 11 futures from 2005 to 2026, with 15 matched pairs of stacks that share the same first and last line. Each pair was compared market by market, 165 comparisons for every signal and side. On the pullback signal, traded long and short, the ratio stack had the better return to drawdown in 87 of 165. Across all six signal and side cells it won between 63 and 88. Near half, every time. So neither spacing wins consistently. What did move them was where the stack starts: every ratio stack starting at 8 to 12 bars, with a step ratio of 1.3 to 1.8, had a positive median return to drawdown on the pullback signal. 18 of 18. If you run a rainbow, set your first line before you touch the spacing. Frictionless, one exit, no stop. A trend filter to build on, not a finished system. The full study, the charts and the video walkthrough: https://statoasis.com/overfit/research/rainbow-moving-average

Oct 29, 2026
StatOasis card, dark navy. The workflow, and a separate test. Four prompts get you a candidate, not an edge. A field of 2,068 small grey dots, not one of them lit, labelled 2,068 eligible variants, none beat buy-and-hold out-of-sample. 0 of 2,068 eligible optimizer-sweep variants beat buy-and-hold out-of-sample.

Zero of 2,068 eligible optimizer variants beat buying and holding out-of-sample. That is the result of the optimizer sweep I ran alongside this prompting workflow: 2,304 variants swept on SPY, 2,068 of them with enough trades to score, and not one that cleared the baseline out-of-sample. The same study tested 5 AI-written rules exactly as given. 0 of the 5 beat buy-and-hold either, and the AI that wrote them was trained on text published during that out-of-sample decade. So I split the two things apart. This page is the workflow. Four prompts, in order, to get a specific and testable strategy out of a model instead of a paragraph of hedging. Experience and criteria first. Then the market edge, named. Then exits. Then filters that remove trades. It is deliberately not the evidence that the output works. A guide that teaches a workflow and also grades it tends to grade it generously. Use the prompts. Then go and validate what comes out, because the prompts are the easy half. The four prompts, in order: https://statoasis.com/overfit/research/use-ai-to-develop-profitable-trading-strategies-here-is-how

Oct 28, 2026

What you won't find here.

No trade calls. No daily predictions. No PnL screenshots. This is for traders who want to understand how to build trading systems, how they behave in different market regimes, when they break, and why. If that's not you, there are plenty of other places, and no hard feelings.

What traders say.

rodolfo berrocal's photo

rodolfo berrocal

Hello, my name is Rodolfo Berrocal, I'm from Lima, Peru. I just stopped by to thank you for all the great work you do. I'm doing my best to understand your videos since I don't speak English very well, but I'm still learning a lot from you. I'm just getting started in the world of algorithmic trading, and it's going well for me. Thank you again, and blessings.

Tommy's photo

Tommy

Dear Ali, your attention to detail - and people - was always bar none. No question, you are our Financial Guru, while also a loving/caring figure so you deserve our utmost respect! Thank you for all your shared experience and everyday hard work for our not-only-financial wellfare! :)

Chad's photo

Chad

I’ve been in the program since Feb, have found a way to create and find a lot of pretty good algos, but magic sauce happens when we combine the uncorrelated “pretty goods”. Happy to report since Feb, up 28pct and am now in maintenance mode working on the process instead of reflexively reacting to every draw down that I think is the end of the world. Biggest learnings. Test for worst case portfolio drawdown, size accordingly. Trade top strategies within that portfolio, cycle out worst performers every few months. Seems to be a winning recipe and am so excited to think about the next chapter in this journey I’ve been on for many many moons 😃

Read more →

StatOasis is calm, evidence-based algorithmic-trading education, founded by Ali Casey. Ali builds systematic trading strategies and teaches the workflow behind them: research, build, test, combine, deploy. He writes the Overfit newsletter, published since 2024, and runs the Algo Trading Masterclass.

Socials

  • X ↗
  • YouTube ↗
  • Instagram ↗
  • LinkedIn ↗
  • GitHub ↗
  • Muck Rack ↗
  • LinkedIn SO ↗
  • GitHub SO ↗

Products

  • Overfit - the newsletter
  • Algo Trading Masterclass
  • StatOasis Community
  • 36 Ways to Buy the Dip
  • AlgoChef ↗

Reading & tools

  • Research
  • Methodology
  • Survive the Decade
  • Wall of Love

StatOasis

  • About Ali Casey
  • Contact
© 2026 StatOasis. Calm, evidence-based.
PrivacyTermsHypothetical resultsCalifornia