Alan Ross

Alan Ross Forex

Free Forex Indicators, MetaTrader Tools and Honest Trading Guides

Learn Forex

Choppiness Index Settings for MT4: Period 14 Below 45 Made +$3.16 an Ounce on Gold M15, and 0 of 56 Settings Made Money on M5

Key takeaways

  • I tested 28 settings of two “trending or choppy” filters on one breakout rule: the Choppiness Index with period 10, 14 or 20 and a cut-off of 38.2, 45, 50 or 55, and the Gopalakrishnan Range Index (GRI) with period 10, 14, 20 or 30 and a rank cut-off of 50% to 80%. Four charts, 112 settings, spread included.
  • On EURUSD M5 and gold M5, 0 of 56 settings made money after cost. Only 5 of 56 were positive even before it.
  • On gold M15, 15 of 28 made money and 10 made money in both halves, all 10 of them Choppiness Index settings. The breakout with no filter made +$0.21 an ounce a trade there.
  • The best was Choppiness 14 below 45: +$3.16 an ounce a trade over 115 trades, +$4.07 and +$2.79 in the two halves, above the +$2.39 that random entries reached in their best 5% of runs.
  • The textbook 38.2 cut-off was the weakest Choppiness setting on gold M15, and GRI lost in the first half with all 16 of its settings there.

The Choppiness Index is the filter most traders reach for when a trend rule keeps getting chopped up. Guides give the same two numbers, 38.2 and 61.8, and rarely say where they came from. This guide shows how to put the Choppiness Index and GRI on an MT4 chart, then what each period and cut-off did to the same breakout rule on 12 weeks of EURUSD and gold.

Whether these filters work at all, compared with ADX, is in Choppiness Index vs ADX vs GRI. Why GRI is closer to a volatility meter is in the Gopalakrishnan Range Index test.

How do you add the Choppiness Index to MT4?

MetaTrader chart with the Choppiness Index under price
  1. Get the file: MT4 does not ship with the Choppiness Index. Free versions are on the MQL5 Code Base; search “Choppiness Index” and download the .mq4 file.
  2. Install it: in MT4, File, Open Data Folder, then MQL4, Indicators. Copy the file there, go back to MT4 and right-click Indicators in the Navigator, Refresh.
  3. Add it to the chart: drag Choppiness Index from Custom onto the chart. Set the period (14 is the usual default; the test used 10, 14 and 20).
  4. Set the levels: on the Levels tab add the cut-off you trade. The test found 45 and 50 more useful than 38.2 on gold M15; keep 61.8 if you also want to see the textbook “choppy” line.
  5. Add the rule: a 20-bar breakout needs no indicator, only the last 20 highs and lows; Insert, Indicators, Oscillators, Average True Range 14 for the stop. Save everything as a template.

The rule on the chart: a bar closes above the highest high of the 20 bars before it, and the Choppiness Index on that bar is below your cut-off: buy. A close below the 20-bar low with the same condition: sell. Stop 1.5 ATR, target 3 ATR, close after 48 bars if neither is hit. One trade at a time. The same steps work in MT5 with the MQL5 version of the file.

GRI is also a custom indicator. It is the log of the n-bar high-low range divided by the log of n. Because its raw value depends on price, I used its rank against the last 288 bars. If you cannot find a GRI file, ATR 14 gives you nearly the same reading: the two correlated at 0.81 on three of four charts.

Which settings made money?

Choosing indicator settings in the trading platform
ChartSettingsPositive before costPositive after costPositive in both halvesBreakout with no filterBest setting, after cost
EURUSD M528400-1.39 pipsGRI 30, rank above 70%: -0.75 pips
Gold M528100-$0.75Choppiness 20 below 55: -$0.19
EURUSD M15282131-0.26 pipsGRI 10, rank above 60%: +0.34 pips
Gold M1528161510+$0.21Choppiness 14 below 45: +$3.16

Cost 1 pip per EURUSD trade, $0.30 an ounce per gold trade, from my spread measurement. Every setting had at least 45 trades. Data: EURUSD June 3 to August 26, 2026, 16,926 M5 bars; gold over the same weeks.

On M5 the filter cannot fix the rule. The breakout lost 1.39 pips a trade on EURUSD M5 with no filter, and the best of 28 filters only cut that to 0.75. On EURUSD M15, 21 of 28 settings were positive before the spread and 3 after it: on small bars, one pip of cost is a large share of the move, as in the ATR channel vs Bollinger Bands breakout test. Gold M15 is the only chart where the setting changed the answer.

What were the best Choppiness Index settings on gold M15?

Gold M15, breakout taken when Choppiness is belowPeriod 10Period 14Period 20
38.2 (textbook)-$0.98 (88)+$1.70 (78)-$3.20 (57)
45+$2.40 (125)+$3.16 (115)+$1.80 (103)
50+$1.78 (149)+$2.18 (140)+$1.70 (129)
55+$1.21 (165)+$2.10 (160)+$1.12 (155)

Dollars an ounce per trade after cost, trades in brackets. With no filter: +$0.21 over 177 trades.

Every cell from 45 to 55 made money with every period, and all 9 of them were positive in both halves, as was period 14 at 38.2. The textbook 38.2 cut-off was the weakest row: it keeps only the quietest-looking bars and leaves 57 to 88 trades, and two of its three periods lost. Period 14 was the best column at every cut-off.

Gold M15 settingTradesAfter costWonProfit factor1st half2nd halfRandom, best 5%
Choppiness 14 below 45115+$3.1644.3%1.39+$4.07+$2.79+$2.39
Choppiness 10 below 45125+$2.4041.6%1.29+$5.02+$1.38+$2.50
Choppiness 14 below 50140+$2.1840.7%1.26+$4.82+$1.09+$2.10
Choppiness 14 below 38.278+$1.7039.7%1.20+$4.44+$0.41+$3.12
No filter177+$0.2138.4%n/a-$2.39+$1.32+$2.06

Random: 300 runs of random entries on gold M15 with the same stop, target and number of trades (200 runs for the no-filter line). Halves split at July 15, 2026.

Two of the four cleared their random line, one of them by $0.08. Read the halves too: every setting made more before July 15 than after, so expect less than the total going forward. And remember the best of 28 is always a little lucky. The rule vs random entry test explains why the random line is the one to beat.

Which GRI period and cut-off worked?

None reliably. On gold M15, 5 of 16 GRI settings made money in total, but all 16 lost in the first half. The best, GRI 30 with rank above 80%, made +$2.76 an ounce over 45 trades: -$3.64 before July 15 and +$5.95 after. On gold M5 the higher the cut-off, the worse GRI did: rank above 50% lost $0.77 to $1.10 a trade, above 80% lost $1.93 to $2.09. Waiting for a wider range meant buying later.

On EURUSD M15 the one setting positive in both halves was GRI 10 with rank above 60%: +0.34 pips a trade over 171 trades, +0.06 and +0.63 in the halves. The +0.06 is too close to zero to build on.

What settings should you start with?

  • On gold M15: Choppiness Index 14, take breakouts only below 45. +$3.16 an ounce a trade in this test, positive in both halves. Test it on your own broker’s data first.
  • Use 45 or 50, not 38.2. The textbook level kept too few trades and two of its three periods lost on gold M15.
  • Skip the filter on M5. 0 of 56 settings were positive after cost on EURUSD M5 and gold M5.
  • Use ATR instead of GRI. GRI tracked ATR at 0.81 and none of its settings was positive in both halves on gold M15. The ATR settings guide gives you the values for each chart.
  • Do not stack it with ADX. ADX was the weakest of the three filters, and the ADX settings guide shows what its own settings did on the same bars.

Frequently asked questions

What is the best Choppiness Index setting for MT4?

On gold M15 in this test, period 14 with breakouts taken only below 45: +$3.16 an ounce a trade over 115 trades after cost, +$4.07 in the first half and +$2.79 in the second. On EURUSD no Choppiness setting made money.

Is the Choppiness Index built into MT4?

No. It is a free custom indicator. Copy the .mq4 file into MQL4, Indicators via File, Open Data Folder, then refresh the Navigator.

Should I use 38.2 and 61.8 on the Choppiness Index?

On gold M15, 38.2 was the weakest cut-off: two of three periods lost. 45 and 50 made money with every period tested.

What is the best period for the Choppiness Index?

14 was the best period at every cut-off on gold M15, ahead of 10 and 20.

Does the Choppiness Index work on the 5-minute chart?

Not with this breakout rule. On EURUSD M5 and gold M5, 0 of 56 filter settings made money after cost.

Want a clean indicator to install right now?

It is my own enhanced DeMARK Trend Line indicator for MetaTrader 4 and 5. Non repaint, clean, and free.

Download the Free DeMARK Indicator

Written by Alan Ross

Forex trader and MetaTrader indicator developer. I build and test MT4 and MT5 tools, then write the honest version of how they actually work. More about me.

Last reviewed October 2026
Alan Ross
Alan Ross

Forex educator and indicator developer. I build and trade my own MetaTrader tools, and share the ones that genuinely help.

Leave a comment

Your email address will not be published. Comments are reviewed before they appear.