# DR/IDR Candles

DR/IDR Candles is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

DR/IDR Candles plots the defining range and implied defining range of two configurable sessions as clean range candles, color-coded blue, gray, or orange by where price sits against the range. Optional Fibonacci retracements project pullback levels from either range. Built for session traders applying the DR/IDR rule set to the morning or overnight window.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Jan 16, 2023.
- Access: free.
- Concepts: [Defining Range](https://www.luxalgo.com/library/concept/defining-range/) (primary), [Opening Range & ORB](https://www.luxalgo.com/library/concept/opening-range-and-orb/), [Trading Sessions](https://www.luxalgo.com/library/concept/trading-sessions/), [Session High/low Statistics](https://www.luxalgo.com/library/concept/session-high-low-statistics/)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmpwn1asw001qvhsgge6yipkg
- Page: https://www.luxalgo.com/library/indicator/dr-idr-candles/

**DR/IDR Candles** turns the defining range (DR) and implied defining range (IDR) of two user-set sessions into clean range candles, a structured cousin of [opening range](https://www.luxalgo.com/library/concept/opening-range-and-orb/) trading built around the specific windows the method prescribes. Solid lines mark the DR, dashed lines the IDR, and solid wicks extend from the DR to the furthest price reached beyond it after the session. Color does the talking: blue when price closes above the DR maximum, orange when it closes below the DR minimum, gray while price sits inside. Optional Fibonacci retracements project pullback levels from either range, with the 0.5 average line shown by default.

## How to Trade the DR/IDR Candles?

- **5-minute close above the DR high after the session**: the rule set expects the DR low to hold as the session's low.
- **5-minute close below the DR low**: the mirror case: the DR high is expected to cap the session.
- **Close beyond the IDR**: an earlier read of the same bias, suggesting the opposite DR extreme may mark the day's boundary.
- **Background persistence**: extended range-fill shading shows how often price kept trading back into the IDR, a gauge of the range's weight as support or resistance.

The rules come from trader TheMas7er, who defined the concept in November 2022; they are conditional tendencies, not certainties. Both [trading sessions](https://www.luxalgo.com/library/concept/trading-sessions/) are fully configurable, so the tool depends on correct time-zone alignment.

## DR/IDR Candles Settings

- **Regular Session** (default 09:30 – 10:30): toggles and times the regular DR/IDR.
- **Overnight Session** (default 03:00 – 04:00): the overnight counterpart.
- **UTC Offset** (default -5): aligns both windows with the intended market time.
- **Reverse**: inverts the source range's upper/lower values when building retracements.
- **From** (default IDR): selects which range anchors the retracements.

## Frequently Asked Questions

### Do the DR/IDR rules always hold?

No. They describe conditional probabilities observed around these ranges, and there is limited statistical backing. Markets remain highly stochastic. Treat the colors and rules as a bias framework to combine with your own risk management.

### What separates this from a classic opening range tool?

A build like [Opening Range with Breakouts & Targets](https://www.luxalgo.com/library/indicator/opening-range-with-breakouts-targets/) brackets one opening window and trades its breakouts. DR/IDR Candles implements a specific two-session methodology with its own confirmation rules and the extra IDR layer.

### How can I access DR/IDR Candles?

The tool is free. Add it to your chart from this page on the LuxAlgo Library and set the sessions to your market. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [Opening Range with Breakouts & Targets](https://www.luxalgo.com/library/indicator/opening-range-with-breakouts-targets/) (Opening Range & ORB): markdown at https://www.luxalgo.com/library/indicator/opening-range-with-breakouts-targets.md
- [Ultimate Opening Range Breakout](https://www.luxalgo.com/library/indicator/ultimate-opening-range-breakout/) (Opening Range & ORB): markdown at https://www.luxalgo.com/library/indicator/ultimate-opening-range-breakout.md
- [Sessions](https://www.luxalgo.com/library/indicator/sessions/) (Trading Sessions): markdown at https://www.luxalgo.com/library/indicator/sessions.md
- [Session Streaks](https://www.luxalgo.com/library/indicator/session-streaks/) (Trading Sessions): markdown at https://www.luxalgo.com/library/indicator/session-streaks.md
- [High/Low Location Frequency](https://www.luxalgo.com/library/indicator/high-low-location-frequency/) (Session High/low Statistics): markdown at https://www.luxalgo.com/library/indicator/high-low-location-frequency.md
- [Session Levels Predictor](https://www.luxalgo.com/library/indicator/session-levels-predictor/) (Session High/low Statistics): markdown at https://www.luxalgo.com/library/indicator/session-levels-predictor.md
- [8AM 1H Range & Breaks](https://www.luxalgo.com/library/indicator/8am-1h-range-breaks/) (Opening Range & ORB): markdown at https://www.luxalgo.com/library/indicator/8am-1h-range-breaks.md
- [8am Road Map Zone](https://www.luxalgo.com/library/indicator/8am-road-map-zone/) (Opening Range & ORB): markdown at https://www.luxalgo.com/library/indicator/8am-road-map-zone.md

---

Source: https://www.luxalgo.com/library/indicator/dr-idr-candles/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
