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

Nasdaq Fell 5.5% Thursday. I Tested the Day After.

Nasdaq Fell 5.5% Thursday. I Tested the Day After.

Nov 9, 2026

Two Trading Indicators, One Identical Trade

Two Trading Indicators, One Identical Trade

Nov 2, 2026

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

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

Oct 26, 2026

Latest from StatOasis X channel

StatOasis card. 116,640 backtests. Before costs, the band barely matters. The direction does. 95.2% Long variants profitable; 4.8% Short variants profitable; 2.8pt Spread between band families; 90.4pt Spread between long and short.

116,640 backtests on Bollinger vs Keltner vs Casey Bands. Both decisions on one metric, the share of long variants that made money: Which band you pick: worth 2.8 percentage points. Which side you trade: worth 90.4. On that metric, you are arguing about the wrong variable. https://statoasis.com/overfit/research/how-to-build-a-profitable-strategy-using-casey-bands-%28free-code-included%29

Nov 9, 2026 · 54 impressions · 1 reaction
Source: StatOasis · SPY/QQQ/IWM/DIA daily 1993 to 2026 · 33,792 backtested variants across RSI, Stochastic & Williams %R · frictionless event study. Percentages are the share of backtested variants that were profitable; R-expectancy is average profit per dollar risked. Historical measurement, not investment advice. Past performance does not guarantee future results.

1,932 of 2,112 long dip-buying settings made money on SPY, QQQ, IWM and DIA at once. The oscillator barely mattered. The side did. Pick your side first. Save the poster, read the full study: https://statoasis.com/overfit/research/rsi-vs-stochastic-vs-williams-r

Nov 8, 2026 · 75 impressions
Tall StatOasis infographic. Replace your MACD, or confirm it: across 9,216 backtests on six markets, swapping price for volume improved profit factor in 44.4% of 3,072 matched pairs, net profit in 47.5% and Sharpe in 40.5%, and the result swung by market from 65.4% on QQQ to 16.2% on IWM. Frictionless, historical, not investment advice.

At the default 12/26/9, swapping price for volume beat the plain MACD on profit factor in 3 of 6 markets. A coin flip. If you like OBV, let it veto your MACD instead of replacing it. Save the poster, read the full study: https://statoasis.com/overfit/research/obv-macd-vs-traditional-macd-which-one-wins

Nov 7, 2026 · 67 impressions · 1 reaction

Latest from LinkedIn

StatOasis card. The channel exit lost to a calendar. Same 40-day-high entries, different exit. $12,916.31 net profit, 20-bar hold exit, picked out as the standout; $10,550.27 net profit, 20-day channel exit, played down; 18.2% max drawdown, 20-bar hold exit; 26.3% max drawdown, 20-day channel exit. Return per unit of drawdown: 0.20 on the calendar exit against 0.10 on the classic channel exit.

The most famous exit in trend following just lost its own head-to-head. For decades the channel-breakout playbook has said: buy a close above the 40-day high, sell a close below the 20-day low. The entry gets argued about. The exit is treated as settled wisdom. We ran the same 40-day-high entries through eleven different exits on 33.4 years of SPY — part of a 1,188-variant grid, one position at a time, frictionless, $10,000 fixed account. Holding every breakout for exactly 20 bars — no signal, no channel, just a calendar — beat the classic 20-day-low exit on net profit ($12,916.31 vs $10,550.27), max drawdown (18.2% vs 26.3%), and return-to-drawdown (0.20 vs 0.10). And if you insist on a channel exit, wider wins: the 40-day-low exit reached a 4.25% CAR against the classic's 2.69%. The grid ranks exits, it does not isolate why. What it does show: on these entries the 40-day channel, the 55-day channel and the 20-bar clock each earned more than the classic exit with a shallower drawdown. One honest caveat: frictionless results, single market. Real costs shrink every number here. Full tables and methodology: https://statoasis.com/overfit/research/40-in-20-out-the-hedge-fund-trend-strategy-still-in-use-today

Nov 9, 2026
Source: StatOasis · SPY daily 1993 to 2026 · 8,398 bars · 2,304 variants (2,068 eligible) · 70/30 in-sample/out-of-sample split · frictionless event study. Net profit on $35,000 starting capital, no compounding. Historical measurement, not investment advice. Past performance does not guarantee future results.

Random entries matched or beat one AI-written rule 56.2% of the time. That was Rule 2, a Stochastic oversold buy in an uptrend. It made $23,316.58 on the build data and $6,264.20 on the blind test. Profitable, and no better than a coin. Compare Rule 4: random entries matched or beat it only 3.3% of the time. I had an AI write 5 trading rules for SPY, then tested each one out of sample against 1,000 random-entry runs on the same side and hold. All 5 made money. Only 2 beat 95% of the random runs. None beat buy and hold. Profit is not proof. Rule 4, the best of them, earned $31,954.46 out of sample. Holding SPY earned $87,835.34. You can read a 5 for 5 profitable record as success, or as a test that was too easy to pass. Frictionless, one market, one split, $35,000 starting capital. Save the poster, read the full study: https://statoasis.com/overfit/research/ai-strategy-validation

Nov 8, 2026
StatOasis card. 5-day drift climbs with gap size . Size · price % lens. Bar chart of average 5-day forward drift by gap size: <0.25% +0.19% (n=3,839), 0.25-0.5% +0.12% (n=2,233) and 0.5-1% +0.24% (n=1,582) shown muted; 1-2% +0.34% (n=594) and >2% +0.734% (n=149) picked out as the standouts.

Here is what this gap study cannot tell you. It is frictionless. No commission, no slippage. The forward drifts are real but they are gross — a +0.19% average move after a small gap is exactly the kind of edge trading costs eat first. Magnitudes here are relative, not net. It is an event study, not a trading system. Events overlap, and backtest variants with fewer than 50 trades are flagged rather than dropped, because their rankings are unstable on new data. Those flagged variants are the ones to distrust first when you rebuild this yourself. What survives those caveats: the forward drift rises with gap size across every non-trivial bucket, the ATR lens is the cleanest, and long ranks above short, though neither side beats a random-entry control. Those hold; the tradeable net-of-cost version is your homework. I publish the limits because a study that hides them is not worth trusting. Full caveats section: https://statoasis.com/overfit/research/sp500-opening-gaps

Nov 7, 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