Choppiness Index, ADX Filters

Learn to use Choppiness Index and ADX filters with your trading bots to avoid sideways markets. Improve bot profitability by trading only in trending conditions

Published · Updated · Methodology: Technical Indicators

Part of: ADX / Trend Strength

  • Methodology: Technical Indicators
  • Content type: both
  • Timeframes: Not specified (examples shown on various timeframes, but no specific recommendation)
  • Markets: Not specified (examples shown on general charts)

Indicators used

  • Choppiness Index
  • ADX

Source video

Decoded from: Le pregunté a la IA cómo detener mi bot cuando el mercado no sirve — y construyó esto by TradingMX — watch the original

Key timestamps:

  • 0:30 - Introduction to the problem of bots trading in sideways markets
  • 1:30 - Introduction of Choppiness Index and ADX as filters
  • 1:50 - Choppiness Index explanation and parameters
  • 3:40 - ADX explanation and parameters
  • 5:00 - Measuring bot inactivity with filters

Strategy overview

Most work on trend-strength indicators asks how to get into a trade; this entry asks the opposite question. ADX puts a number on how strongly price is trending without saying which way, and here it is paired with the Choppiness Index, a gauge built to score the condition ADX readers usually try to avoid — a market covering distance without going anywhere. Neither is used to generate a signal. Both are proposed as a veto sitting in front of a system that is already running.

The source is a Spanish-language video from TradingMX, and its framing is unusual enough to matter: the title translates roughly as "I asked the AI how to stop my bot when the market is useless — and it built this." The premise is a bot that trades fine in trends and bleeds in ranges, and the video documents the exchange that produced a filter block as the answer. That is a real and common problem — a mechanical system has no instinct for sitting out — but it also sets the honest boundary of what is on offer here. What the video walks through is the reasoning behind each gauge and the parameters it exposes, in sequence: the Choppiness Index first, ADX second, as two independent conditions a bot can be required to clear before it is allowed to act.

The closing segment is the part worth thinking about hardest. It measures the filters by bot inactivity — how much time the system now spends flat — which is a genuinely useful way to evaluate a gate, because a filter has no P&L of its own and can only be judged by what it removes. Tighten it and the bot sits out conditions it would have handled; loosen it and it stops earning its place. The video also gives no timeframe recommendation, showing examples across several charts, which leaves the thresholds themselves as the open variable: a lookback and a cutoff mean different things on a 5-minute chart than on a daily one, and any filter borrowed this way has to be re-measured on the system it is meant to protect.

Topics

choppiness index strategy · adx strategy · technical indicators · trading strategy · tradingview strategy · pine script · market filter strategy · trend following strategy · trading bot strategy · algorithmic trading

Frequently asked questions

What is the difference between the Choppiness Index and ADX?

They measure related conditions from opposite directions. The Choppiness Index is designed to quantify how range-bound or directionless recent price action has been, while ADX quantifies how strong a directional move is, regardless of whether it is up or down. Used together, as in this video, one is asked to confirm what the other suggests before a system is allowed to trade.

Can indicators tell a trading bot when not to trade?

That is exactly the use case this video explores. A market-condition filter does not generate entries; it acts as a gate that blocks a system's signals while conditions fail a defined test. The trade-off is always the same — a gate that filters out bad conditions will also filter out some good trades, so the value depends on which it removes more of.

Does this video provide a complete trading strategy?

No, and it does not claim to. It presents a filter layer intended to sit on top of a system that already has its own entry and exit logic. The video works through what each indicator measures and which parameters it exposes, rather than defining a standalone set of trading rules.

How do I know if a market filter is actually helping?

Test the same system with the filter on and off over identical data, and compare not just the results but how many trades the filter removed and which ones. Strategy Decoder catalogs strategies and components like these from video sources so you can see what a setup is built from before testing it on TradingView.

About this strategy page

This trading strategy was decoded by Strategy Decoder's AI from a public YouTube trading video and turned into a structured, reviewable specification. In the interactive app this page shows the full entry and exit logic, risk management settings, the indicators involved with their parameters, AlgoWizard-compatible logic and a Pine Script export ready for TradingView backtesting — plus an automated backtest verdict when one has been computed for this strategy.

Strategy Decoder catalogs 2,229 decoded strategies. Each one is extracted with confidence scoring, cross-linked to the indicators it uses, and kept up to date as new videos are processed daily. Load this page with JavaScript enabled to use the interactive tools, or start from the strategy explorer to filter by methodology, market and timeframe.

Other versions of this strategy

More decoded strategies