All indicators

Range Detector

By LuxAlgoOct 3, 2023

Static chart image

Range Detector finds sideways ranges automatically and draws them as they form, sparing traders the manual work of boxing consolidation by hand. Each zone is anchored back to where the range began, a gray background stamps the exact bar of detection, and a dotted midline marks the equilibrium between the extremities.

How to Trade the Range Detector?

  • Blue extremities: the range is intact. Both boundaries are unbroken and edge-to-edge rotation remains in play.
  • Green extremities: price has broken above the upper boundary, pointing to a potential uptrend.
  • Red extremities: price has broken below the lower boundary, hinting at a developing downtrend.
  • Dotted midline: the halfway mark between range maximum and minimum, a useful reference for judging rotations.

Extremities extend until a new range is detected, so previously broken levels keep serving as support and resistance long after the range resolves. When a fresh range overlaps an existing one, the two are merged and the earlier extremities are updated, keeping the chart coherent even in choppy conditions.

Range Detector Settings

  • Minimum Range Length: the minimum number of bars required before a range can be detected.
  • Range Width: an ATR multiplier controlling detected width. Lower values isolate smaller ranges, higher values can produce false positives.
  • ATR Length: the lookback of the Average True Range that defines that width.

Frequently Asked Questions

Free on Vela

Run it on Vela. Go further with a paid plan.

  • Up to 500 strategy alerts, with webhook automation
  • Up to 10× the chart history of Free
  • Orderflow lookback up to full history
  • More Quant usage to customize it, plus extra usage when you need it
  • Futures data alongside crypto, stocks, forex and commodities
See plans

Also works on

TradingView
NinjaTrader
MetaTrader 4/5
Original indicatorBuilt in-house by LuxAlgo

Run it on Vela. Make it yours with Quant.

Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.