A grid bot deployed into the wrong market regime will lose money no matter how well it is configured. Range, grid count, leverage, and fee optimisation all become irrelevant if price is trending strongly in one direction. Regime detection is not about predicting the future — it is about avoiding conditions that are structurally hostile to the strategy.

The two regimes that matter

For a grid bot, market conditions fall into two broad categories. A ranging regime is one where price oscillates within a band without establishing a persistent directional trend. Price may move significantly intraday but mean-reverts over days or weeks. This is the environment a grid bot is built for — it earns on every oscillation and the range stays intact.

A trending regime is one where price makes higher highs and higher lows (uptrend) or lower lows and lower highs (downtrend) over the time horizon of the trade. In a trend, the grid bot fills all its orders on one side, reaches the range boundary, and stops trading. It then holds a fully exposed directional position — exactly what it was never designed to manage.

There is also a third, less-discussed regime: low-volatility consolidation. Price is not trending but is also not oscillating meaningfully. It sits in a very tight band, barely crossing grid levels. The bot is technically in the right environment but earns very little because fill frequency is low. This is not dangerous, but it is unproductive.

ADX: measuring trend strength

The Average Directional Index (ADX) measures the strength of a trend without indicating its direction. It runs from 0 to 100. A high ADX means price is trending strongly in whatever direction it is moving. A low ADX means price is ranging or directionless. ADX does not tell you whether the trend is up or down — only whether a trend exists.

ADX interpretation for grid bot deployment:

  ADX < 20        Weak or no trend — ranging conditions
                  → Suitable for grid deployment

  ADX 20 – 25     Transitional — trend may be forming or fading
                  → Proceed cautiously; monitor closely

  ADX 25 – 40     Moderate trend
                  → Avoid new grid deployment

  ADX > 40        Strong trend
                  → Do not deploy; close existing grids if range is at risk

ADX is a lagging indicator — it reflects what has happened, not what is about to happen. A market with ADX of 18 can develop a strong trend within days. The reading is a current snapshot, not a forecast. Use it as a gate condition, not a guarantee.

Realised volatility: the fill-frequency signal

ADX tells you about trend. Realised volatility tells you about oscillation. For a grid bot, you want volatility that is high enough to generate regular fills but not so extreme that a single move blows through the entire range in one session.

The simulator's Market Analysis panel displays 7-day, 30-day, and 90-day annualised realised vol. A useful rule of thumb:

Realised vol and grid bot suitability:

  Ann. vol < 30%    Low oscillation — infrequent fills, low income
                    → Deploy only if patient; widen spacing

  Ann. vol 30–80%   Normal crypto ranging regime
                    → Core deployment zone for most grid setups

  Ann. vol 80–120%  Elevated — range needs to be wide to contain moves
                    → Deploy with caution; use vol-based range sizing

  Ann. vol > 120%   Extreme — single-session moves may breach any range
                    → Wait; market is in a volatile trending or shock regime

Using both signals together

ADX and realised vol answer different questions and are most useful in combination. A market can have high vol but low ADX — lots of movement but no sustained direction. That is the ideal grid bot environment. A market with high ADX and high vol is trending hard and volatile — the worst case. Low ADX and low vol is the low-income consolidation scenario.

ADX Realised vol Regime Grid bot verdict
< 20 30–80% Ranging, active Deploy — ideal conditions
< 20 < 30% Ranging, quiet Deploy — expect low income
20–25 40–80% Transitional Proceed cautiously, narrow range
> 25 Any Trending Wait — do not deploy
Any > 120% Volatile/shock Wait — range will not hold

What to do at the boundaries

The harder decision is not whether to deploy in a clear trend or a clear range — it is what to do when a deployed grid bot is running and the regime changes. ADX rising above 25 while the bot is live is a signal to review, not necessarily to close. The relevant question is whether the current price is still within the range and whether the trend has enough momentum to push price outside it before the trade horizon ends.

One practical approach: set a manual stop condition. If ADX crosses 30 while the bot is running, check whether price is within 10% of the range boundary. If it is, consider closing. If price is still near the mid-point of the range and the trend appears shallow, hold and monitor. Regime changes do not always invalidate an ongoing trade — they raise the probability of the range being breached.

Warning: the most common cause of grid bot liquidation is not a configuration error at deployment — it is a regime change after deployment that pushes price through the range boundary and into the liquidation zone. Check ADX weekly on any live grid.

The simulator's Market Analysis panel

The Market Analysis panel in the simulator displays the current ADX reading, 30-day realised vol, and a regime classification label — Ranging, Transitional, or Trending — based on those inputs. It also shows the 30-day high/low range and the vol-based range suggestion. These are provided as inputs to your decision, not as instructions. The panel updates when you upload new OHLCV data via the Backtest tab.

Try it in the simulator

Upload a 90-day OHLCV file covering a period you know included a significant trend move. Check the ADX reading the simulator displays and compare the Monte Carlo outcome with a file from a quieter ranging period using the same configuration.

Launch the simulator →