100 AI-Generated Indicators Tested as Breakout Filters

I wanted to answer one question: what’s the best indicator to use as a filter for breakout strategies on NASDAQ 60-minute charts? So I had Gemini write 100 filter conditions for TradeStation, tested them on a few thousand breakout strategies with and without each filter, in-sample and out-of-sample, and compared the results in BreakoutOS.

Volume and moving averages were the strongest categories. The most robust single filters were two of the simplest on the list: bar range and average true range (ATR). Here’s exactly how I ran the test and what I found.

How I Generated 100 Filter Conditions With AI

Here is what I actually did. I went to Gemini AI and asked it to generate 100 different filter conditions written in EasyLanguage for TradeStation. Each condition was its own “case” with unique input parameters – things like lookback periods, thresholds, and multipliers.

It took about an hour to clean everything up. Some of Gemini’s conditions didn’t make much sense, and there were duplicates. But after cleanup, I had 100 usable filter conditions organized into six categories:

  • Moving averages – 15 conditions
  • Oscillators – 25 conditions (the largest group)
  • Price action – 15 conditions
  • Trend – 15 conditions
  • Volatility – 15 conditions
  • Volume – 15 conditions

Oscillators got the most conditions because they’re probably the most popular category, with the most variety. The categories matter, because I didn’t only want the best single filter. I also wanted to know which category of filters is worth focusing on.

The Testing Framework

This is where it gets serious. I did not just slap these filters onto one strategy and call it a day. That tells you nothing. Instead, I used a rigorous framework built on the Mr. Breakouts Formula.

First, I used the formula to prototype a few thousand NASDAQ 60-minute breakout strategies without any filter. These were the baseline. Then I tested the same strategies with the filters applied, with different optimization parameters, and split every test into in-sample and out-of-sample data. A filter that looks best in-sample also has to prove itself on unseen data. Altogether I imported 3,500 strategy results into BreakoutOS: almost 1,000 for oscillators and about 500 for each of the other categories.

The key metric I used is something proprietary to BreakoutOS called the “uplift index.” It measures the overall improvement a filter provides across multiple dimensions at once – net profit, return ratio, win percentage, and average trade size. All of these are combined into one simple uplift score, so you can see at a glance which filters improved the strategies the most. The absolute number doesn’t matter much. What matters is which filters score highest.

This is critical because most people test one indicator on one strategy and declare victory. That approach is useless. To really know if a filter has value, you need to see consistent improvement across a large sample – the same principle that applies to validating whether a strategy is real.

Cluster Analysis: Which Categories Actually Work?

For me, the most important part is the cluster analysis. Instead of judging indicator by indicator, it shows which categories of indicators work best overall, in-sample and out-of-sample.

Here is what the data showed:

Filter Category In-Sample Performance Out-of-Sample Performance
Volume Positive uplift Positive uplift
Moving Averages Positive uplift Positive uplift
Oscillators (25 conditions) Negative – made results worse Little or no improvement
Price Action Negative – made results worse Positive uplift
Trend Negative – made results worse Little or no improvement
Volatility Negative – made results worse Little or no improvement

Only two categories improved the strategies both in-sample and out-of-sample: volume and moving averages. In-sample, every other category made the results worse overall, which surprised me. Out-of-sample, price action improved the results too, and the rest didn’t improve much. That doesn’t mean you can’t use a price action filter or an oscillator. A single filter inside any category can still work fantastically. These numbers describe each category as a whole.

If you focus on NASDAQ, volume and moving average filters are very strong overall, and it’s comforting that they held up both in-sample and out-of-sample.

The Most Robust Filters: Bar Range and ATR

When I drilled down from categories to single filters, the best ones didn’t come from the best category. Volume rocks as a category, but the top of the robustness ranking was price action and volatility, led by condition 100 (bar range) and condition 58 (average true range). They’re very similar conditions, and both measure how big the recent bars were.

Related: For the full methodology and ranking table, see Finding the Best Trading Filters with BreakoutOS (Index Markets).

Super simple. Condition 100 takes the high minus low of each bar and checks whether it’s bigger or smaller than a specific value. Condition 58 does the same with the average true range. If the range is unusually big or small, that tells you whether volatility is expanding or contracting, and whether a move is about to happen.

I use bar range and ATR in my strategies all the time, so I was very happy to see these numbers. They confirm what I keep seeing again and again. On the total score, which combines the in-sample uplift, the out-of-sample uplift and the robustness index, bar range, true range and ATR came out on top too.

Here’s what condition 100 (bar range) improved, on average across the strategies. It varies strategy by strategy, but these are the kind of improvements you can expect:

  • Max drawdown decreased by 40% on average
  • Net profit improved by 60% on average
  • Win percentage improved – more winning trades, fewer losers
  • Average trade improved – each trade captured more profit on average

The most important finding was robustness. Bar range and ATR were among the highest on the robustness index, which compares in-sample with out-of-sample results. On the robustness quadrant, the better they did in-sample, the better they did out-of-sample. That’s exactly what you want, because that stability is what gives a filter a chance to keep working in live trading.

This is what separates a real filter from a mirage – and it is the same principle behind proper robustness testing.

What This Says About AI and Indicators

I used AI to generate the conditions, but the best condition AI produced was the simplest one it came up with. There is a lesson in that.

AI did a useful job here. It wrote 100 conditions I’d otherwise have written by hand, and checking and cleaning up its list took me about an hour. The answer itself came from the testing framework: thousands of strategies with and without each filter, split into in-sample and out-of-sample.

If you’re chasing the latest AI indicator, consider this: out of 100 conditions, the most robust filters were bar range and ATR, which you’ve probably been using again and again.

How to Apply This to Your Trading

If you are building breakout trading strategies, here is what I recommend based on this experiment:

  • Add a bar range or ATR filter, and normalize it. In this test the thresholds were in NASDAQ points, which aren’t normalized for other markets. A percentage is much better. Another option, which I’ve shown in many past videos, is to compare a short-period ATR with a longer-period ATR and filter on whether it’s bigger or smaller.
  • Test across many strategies, not just one. If a filter only helps one specific strategy, it is probably curve-fitted to that setup. Use an uplift approach across a large sample.
  • On NASDAQ, start with volume and moving average filters. As categories, they gave the best overall improvement both in-sample and out-of-sample.
  • Prioritize robustness over peak performance. A filter that gives you a small, consistent edge is worth far more than one that gives spectacular results in-sample and disasters out-of-sample.

From this one study you could pick five, six, seven or eight filters worth using. If you want just one or two, pick the most robust: bar range and ATR.

Key Takeaways

  • AI generated 100 filter conditions across six categories – only volume and moving averages showed positive uplift both in-sample and out-of-sample
  • In-sample, the other four categories made the results worse overall; out-of-sample, price action improved them too
  • The most robust single filters were bar range (high minus low) and ATR, both measuring how big the recent bars were
  • Bar range reduced max drawdown by 40% and improved net profit by 60% on average
  • Both were among the highest on the robustness index: the better they did in-sample, the better they did out-of-sample

I used AI to write the conditions, and the testing pointed to two of the simplest indicators there are. Listen to the data.

Frequently Asked Questions

What is the best indicator for breakout trading?

In my test of 100 indicator filters on NASDAQ 60-minute breakout strategies, the most robust single filters were bar range (high minus low) and average true range (ATR). Bar range cut max drawdown by 40% and improved net profit by 60% on average. As categories, volume and moving average filters gave the best overall improvement, in-sample and out-of-sample.

Can AI find good trading indicators?

AI is useful for the legwork. Gemini wrote 100 filter conditions for TradeStation, and it took me about an hour to clean up duplicates and conditions that didn’t make sense. The answer came from testing every filter on thousands of strategies, in-sample and out-of-sample. The winners were simple indicators traders already use.

How many strategies were the indicators tested on?

I prototyped a few thousand NASDAQ 60-minute breakout strategies without filters, then tested them with the filters applied. Altogether I imported 3,500 strategy results into BreakoutOS: almost 1,000 for the 25 oscillator conditions and about 500 for each of the other five categories.

Do oscillators like RSI work as breakout filters?

As a category, oscillators made the results worse in-sample and didn’t improve much out-of-sample in this test. That doesn’t rule out every oscillator. A single filter in any category can still work very well, so test it on many strategies before you trust it.

Related Research: For the full cross-market study consolidating NASDAQ and Bitcoin results, see 100 Trading Indicators Tested Across 4,100+ Strategies: What Actually Works.


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.