I ran 16.5 million filter tests on E-mini NASDAQ across 1,000 different strategies and 1,000 different market regimes on the 60-minute timeframe. And I found one indicator that consistently works.
My question was not “which indicator makes this one strategy look good in a backtest.” It was: which indicator improves breakout strategies across a wide range of conditions, including ones it was never tuned for? That is a completely different question, and it requires a completely different testing methodology.
Below I walk through exactly how I structured the test, what came out on top, and why I believe this result will hold in live trading.
Watch the full video below, then read on for the complete breakdown.
The Problem with Standard Indicator Testing
Most traders test indicators by taking a strategy, applying a filter, and seeing if the backtest improves. If it does, the indicator stays. If it does not, it gets removed.
The problem is that this approach almost always produces overfitting. When you test enough indicators and parameter combinations against one fixed strategy on one historical dataset, you will eventually find something that fits that data perfectly. That does not mean it will work in live trading. It means the indicator was tuned to past noise, not to any real market relationship.
The result is a backtest that looks excellent and a live strategy that fails almost immediately. I have seen this happen over and over, and it is one of the biggest reasons traders lose confidence in systematic approaches.
Robust indicator testing requires a different framework. Rather than asking whether a filter improves one strategy, the question should be whether it improves a broad cross-section of strategies across a wide range of market conditions. That is a much harder test to pass, and far more meaningful when something does pass it.
How I Structured the 16.5 Million Tests
I ran the tests using the Indicator Matcher inside BreakoutOS. The process works in three stages.
First, I load a base strategy. BreakoutOS analyzes its DNA: entry logic, exit logic, trade duration, and other structural characteristics.
Second, BreakoutOS generates 1,000 different strategy variations that share the same DNA as the original. These are not identical copies. They enter at different levels and exit at different times, but they are all comparable variations of the same underlying concept. This is what makes the test meaningful: I am comparing apples to apples across 1,000 different market regimes and 1,000 different strategy configurations at the same time.
Third, every available prebuilt filter condition is tested across all 1,000 strategy variations, across all parameter settings. The filter library includes RSI conditions (above/below 50, various configurations), DMI trend filters, moving average filters, ATR volatility filters, volume conditions, and multiple CCI setups. The total number of individual tests across all combinations exceeded 16.5 million.
The entire run took approximately two to three minutes on my M4 MacBook, running inside a web browser. An equivalent test on TradeStation or NinjaTrader across 10 years of 60-minute NASDAQ data would likely take hours or days.
The Base Strategy I Used
I started with a deliberately simple long breakout strategy on E-mini NASDAQ, 60-minute timeframe, with no filter applied.
The entry rule: take the prior day’s low, add 0.8 multiplied by ATR(40), and place a stop entry order at that level. If price crosses the level during the session, the trade triggers. Exit at end of day at 11 PM CME time. No weekend trades. That is the complete logic.
I kept it this simple intentionally. The strategy already has a cross-validated edge before any filter is added. Starting from a clean, well-tested base model matters because it means any improvement from a filter is genuinely additive, not compensating for a weak underlying idea. For more on building this kind of foundational strategy, see Masterclass Part 1: How I Build Breakout Strategies That Actually Work.
How I Score the Results
I evaluate each filter across three metrics, measured against all 1,000 strategy variations:
- Net Profit Ratio improvement: What percentage of the 1,000 strategies showed improved net profit when the filter was applied.
- Average Trade improvement: In what percentage of strategies did the average trade value increase, and by how much on average.
- Bounce Index: Of all the losing strategy variants in the test set, what percentage were turned profitable by this filter alone. This measures how universally applicable the filter is, not just how well it enhances strategies that already work.
A filter that scores well across all three metrics, across 1,000 different strategy configurations, is a strong signal of genuine robustness. That is what I am looking for.
The Winner: CCI Below -100
What came out on top from 16.5 million tests was a Commodity Channel Index (CCI) condition. The optimal specification is:
- CCI period: 27
- Lookback window: 18 bars (18 hours on the 60-minute chart)
- Condition: the lowest CCI value over the last 18 bars must be below -100
- Application: long trades are only allowed when this condition is true
In practical terms, I only take long entries on E-mini NASDAQ after the market has experienced a meaningful pullback in the recent 18 hours. If CCI has not dipped to -100 or lower at any point in that lookback window, I skip the trade.
The logic makes complete sense to me. I am asking: has the market corrected recently before I take a long breakout? Entries made when NASDAQ has been running upward without any meaningful reset are filtered out. This distinguishes conditions where long breakouts are more reliable from conditions where the market may be extended.
For a direct comparison of CCI vs. RSI as a breakout filter, including a separate 4.5 million test study, see Is CCI Better Than RSI? I Tested Both on 4,500,000 Tests.
The Numbers
Here is how the winning CCI condition scored across all 1,000 strategy variations:
| Metric | Result |
|---|---|
| Net Profit Ratio improved | 69% of 1,000 strategies |
| Average Trade improved | 54% of strategies, average increase of +22% |
| Bounce Index (losing strategies recovered) | 57.8% of previously losing strategies turned profitable |
On my original base strategy specifically, the net profit to drawdown ratio improved from 7.53 to 8.6, and the average trade value went from $116 to $149.
Reading the Robustness Map
One of the most informative parts of this result is not the headline score but the 2D parameter map. This plots performance across a grid of input values: CCI period on one axis, lookback window on the other. It shows how sensitive the result is to the exact parameters I chose.
For an overfitted indicator, the map shows a sharp, isolated peak at the optimal values with performance dropping off rapidly on either side. That is the signature of curve fitting.
For this CCI condition, the map looks completely different. The green zone of consistent improvement is wide. Moving from CCI(27) to CCI(25), or from an 18-bar lookback to a 16-bar lookback, still produces consistent improvement across the 1,000 strategies. The performance plateau is broad, not a spike.
This is what genuine robustness looks like: the filter works not because it was tuned to a specific dataset, but because the underlying relationship it captures holds across a wide range of conditions.
I also like the symmetrical 18/18 version (CCI period 18, lookback 18 bars) as a practical alternative. It removes more trades, including some winners, but produces an even smoother equity curve. I personally find clean, round parameters more trustworthy in live trading than finely optimized ones. A filter that only works at CCI(27) with exactly 18 bars looks suspicious to me. One that works equally well at 18/18 is a different story. For more on reading backtests critically, see Your Backtest Is Lying to You (Here’s the Fix) and How to Spot a Fake Backtest in 60 Seconds.
How to Implement the Filter
The pseudocode is straightforward and translates to any platform:
- Calculate CCI with period 27
- Find the lowest CCI value over the last 18 bars
- Only allow long entries when that lowest value is below -100
For the 18/18 symmetrical version: use CCI period 18 and a lookback window of 18 bars, with the same -100 threshold.
This works directly in NinjaTrader, MetaTrader 5, TradingView (Pine Script), Amibroker, MultiCharts, TradeStation (EasyLanguage), and Python.
One important caveat: I tested this on E-mini NASDAQ 60-minute long strategies using 10 years of data. The methodology is designed for robustness, but that does not automatically mean this filter generalises equally well to different markets, timeframes, or short-side strategies. I always recommend running your own robustness checks before deploying anything on a live account.
Related Posts and Videos
Here are related posts and studies that go deeper on the topics covered above:
- Is CCI Better Than RSI? I Tested Both on 4,500,000 Tests: a direct head-to-head comparison of CCI and RSI as breakout filters, using the same cross-strategy methodology.
- I Tested Moving Average Filters on 1,000 Strategies x 1,000 Markets: the same large-scale testing approach applied to moving average conditions across a wider set of markets.
- How to Filter Up to 80% of Bad Trades with One Simple Trend Hack: a focused walkthrough of filtering false breakout entries using a single trend condition.
- Your Backtest Is Lying to You (Here’s the Fix): where overfitting enters the process and how to identify it before it becomes a problem.
- How to Spot a Fake Backtest in 60 Seconds: a quick diagnostic for evaluating whether a backtest result is likely to hold in live conditions.
- Masterclass Part 1: How I Build Breakout Strategies That Actually Work: the full process for building and validating a base strategy before any filter is added.
- I Built a NASDAQ Pivots Algo to Make $15,649/Year (Step-by-Step): a complete step-by-step build of a different NASDAQ strategy using the same systematic approach.
Want to know which indicators actually work? The Indicators Playbook shares what I found testing 100 indicators across 4,100+ breakout strategies, plus custom indicators I built for my hedge fund. All 11 plays, with code for any platform.