Ir al contenido
This page isn’t translated yet, so it’s shown in English.

Detector · TRADES · NODE

Regime

Whether the market is trending up, trending down, ranging or quiet, bar by bar.

Strategy Builder: Regime

What it shows

The detector gives every bar a regime and tints the price chart behind the candles, one band per run of bars in the same regime. A lane along the top of the price chart names each run with a shape and a word, so the regime never rests on color alone, and the readout at the top left adds the regime of the bar under the pointer.

The two methods
MethodRegimesReads
ADXUptrend, Downtrend, RangingTrend strength, from 0 to 100.
ATRQuiet, Up (above SMA), Down (below SMA)Volatility against its own average, and price against a moving average.

How it works

Every number below is the chart’s default.

  1. 1Weak trend reads as ranging

    With the ADX method, a bar is ranging while the ADX over 14 bars is at or below the ADX threshold, 25.

  2. 2Strong trend takes a direction

    Above the threshold the bar trends: up while +DI is at or above −DI, down otherwise. The regime changes on the bar the ADX crosses, which comes after the move has started.

  3. 3Quiet by volatility

    With the ATR method, a bar is quiet while the ATR over 14 bars is under 90% of its average over 50 bars. Every other bar is up above the 200-bar SMA and down at or below it.

  4. 4Warming up

    Bars before the indicators have enough history get no regime, and the lane says Not enough bars. The ADX method needs 26 bars with its default period.

How to use it

Turn on Regime in the Detectors menu. Its settings sketch the method, say how many bars it needs, how much of the loaded bars each regime covers and the regime now. Runs on chooses the chart’s timeframe or a fixed one.

  • Use it to split results: test a rule in ranging bars and in trends separately, and compare the two.
  • The newest bar keeps the last regime until the indicators next run.
Regime settings
SettingDefaultWhat changes
MethodADXADX reads trend strength; ATR reads volatility.
ADX period14 barsHigher reacts later, so more bars count as ranging.
ADX threshold25Higher needs a stronger trend.
ATR period and ATR average14 bars and 50 barsHow the ATR and the average it is compared with are measured.
Quiet below90%Higher marks more bars as quiet.
SMA period200 barsThe average that sets up or down under the ATR method.

What it does not tell you

  • The ADX and ATR are averages of past bars, so a regime changes after the market has.
  • A regime labels the recent past. It does not forecast the next bar.
  • The two methods can disagree about the same bar; neither is the true regime.
  • Without enough history there is no regime, which a short chart or a fresh timeframe can run into.

Test it in the Strategy Builder

Regime passes while the regime is the one you choose: uptrend, downtrend or ranging. It can act as a filter in front of another rule rather than a rule of its own.

Nodes to look for in the Strategy Builder’s palette:

  • Regime

Other layers in this family

  • RangesSideways stretches boxed from their first bar, and the side each one broke out of.
  • Harmonic patternsGartley, Bat, Butterfly, Crab, Cypher and Shark: five swings in Fibonacci ratios, each with a zone and target.
  • Chart patternsFlags, triangles, double tops and bottoms, head and shoulders, each with its target and where it fails.

Questions

The ADX and ATR average the bars before, so they cross their thresholds after the move has started. The regime is a label of what has been happening, not of what will.

The method’s indicators need some history before their first reading. Until then bars have no regime; load more days or wait for more bars.

See it on a real market

Trading Glass is in private beta and reads Binance data. Every layer described here runs in the chart on that data.