OPEN-SOURCE SCRIPT

Range Detection

Updated
This is a simple indicator to find the sideways market or ranging market.

It is mainly focused on BTCUSD as BTCUSD doesn’t make big moves each and every candle. It makes big breakouts with one candle and then goes sideways for a longer period of time.

So, this indicator identifies those big candles and plots high and lows of those big candles using lines. New range is created only when new candles close above or below previous major candles high or low.
Release Notes
1. Range detection is now dynamic.
2. User inputs for the range to start showing.
3. Alerts for Bullish and Bearish breakouts.
breakoutsignalCandlestick analysiscandlestickpatternChart patternsrangerangedmarketrangetradingsidewayconsolidationsidewayssidewayschannelsidewayspatternTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer