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.
| Method | Regimes | Reads |
|---|---|---|
| ADX | Uptrend, Downtrend, Ranging | Trend strength, from 0 to 100. |
| ATR | Quiet, 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.
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.
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.
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.
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.
| Setting | Default | What changes |
|---|---|---|
| Method | ADX | ADX reads trend strength; ATR reads volatility. |
| ADX period | 14 bars | Higher reacts later, so more bars count as ranging. |
| ADX threshold | 25 | Higher needs a stronger trend. |
| ATR period and ATR average | 14 bars and 50 bars | How the ATR and the average it is compared with are measured. |
| Quiet below | 90% | Higher marks more bars as quiet. |
| SMA period | 200 bars | The 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
Related
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.