# Dynamic Order Blocks

Dynamic Order Blocks keeps the most recent unmitigated bullish and bearish order block on the chart, plus the average level between them as an adaptive support/resistance line. Mitigation breaks hint at trend direction, and bordered boxes mark level sweeps: failed breakouts that can precede reversals. A minimal, always-current order block read for price action traders.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Mar 26, 2024.
- Access: free.
- Concepts: [Bullish/bearish Order Block](https://www.luxalgo.com/library/concept/bullish-bearish-order-block/) (primary), [Order Block Anatomy & Refinement](https://www.luxalgo.com/library/concept/order-block-anatomy-and-refinement/)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmpwn1dv1001vvhsgpwv4h275
- Page: https://www.luxalgo.com/library/indicator/dynamic-order-blocks/

**Dynamic Order Blocks** trims the chart down to the two [order blocks](https://www.luxalgo.com/library/concept/bullish-bearish-order-block/) that matter right now: the most recent unmitigated bullish block, its bearish counterpart, and the average level running between them. Instead of papering history across the screen, it maintains a live, minimal map of where significant participation last stepped in, and refreshes the moment either block is mitigated.

## How to Trade the Dynamic Order Blocks?

- **Return to the bullish block**: a candidate support zone for reversal or continuation entries; the bearish block plays the same role overhead.
- **Break above the bearish block's extremity**: a mitigation event that leans the read toward an uptrend; breaking below the bullish block suggests the opposite.
- **Average level**: an adaptable support/resistance line. Shifts in its direction offer additional confirmation of the prevailing trend.
- **Bordered rectangles**: mark sweeps of mitigation levels, the breakout failures that can precede reversal opportunities.

Raising the Swing Lookback shifts the whole tool toward longer-term blocks, which suits strategic planning; keeping it short tracks the freshest zones. It slots naturally into the wider [Smart Money Concepts collection](https://www.luxalgo.com/library/family/smc-ict/) as the minimalist entry in the order block lineup.

## Dynamic Order Blocks Settings

- **Swing Lookback**: the swing detection length used to construct blocks. Higher values produce longer-term zones that update less often.
- **Use Candle Body**: defines the block area from the candle body alone instead of the full range, tightening zones at the cost of ignoring wicks.

## Frequently Asked Questions

### When would I pick this over the Order Block Detector?

The [Order Block Detector](https://www.luxalgo.com/library/indicator/order-block-detector/) maintains a running set of zones for fuller historical context. Dynamic Order Blocks deliberately shows only the latest unmitigated pair, which keeps charts clean and the focus on levels that are still live.

### What does the average level tell me?

It is the midpoint between the displayed bullish and bearish blocks, acting as an adaptive support/resistance reference. Watching its direction change hands is a quick secondary check on trend.

### How can I start using Dynamic Order Blocks?

Access is free from this page on the LuxAlgo Library, and you can send it to Quant, our coding agent, right from the page to study it further. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [Order Block Detector](https://www.luxalgo.com/library/indicator/order-block-detector/) (Bullish/bearish Order Block): markdown at https://www.luxalgo.com/library/indicator/order-block-detector.md
- [Order Blocks & Breaker Blocks](https://www.luxalgo.com/library/indicator/order-blocks-breaker-blocks/) (Bullish/bearish Order Block): markdown at https://www.luxalgo.com/library/indicator/order-blocks-breaker-blocks.md
- [ICT Concepts](https://www.luxalgo.com/library/indicator/ict-concepts/) (Bullish/bearish Order Block): markdown at https://www.luxalgo.com/library/indicator/ict-concepts.md
- [Price Action Concepts](https://www.luxalgo.com/library/indicator/luxalgo-price-action-concepts/) (Bullish/bearish Order Block): markdown at https://www.luxalgo.com/library/indicator/luxalgo-price-action-concepts.md
- [LuxAlgo - Screener (PAC)](https://www.luxalgo.com/library/indicator/luxalgo-screener-pac/) (Bullish/bearish Order Block): markdown at https://www.luxalgo.com/library/indicator/luxalgo-screener-pac.md
- [ICT Propulsion Block](https://www.luxalgo.com/library/indicator/ict-propulsion-block/) (Bullish/bearish Order Block): markdown at https://www.luxalgo.com/library/indicator/ict-propulsion-block.md
- [Smart Money Concepts (SMC)](https://www.luxalgo.com/library/indicator/smart-money-concepts-smc/) (Bullish/bearish Order Block): markdown at https://www.luxalgo.com/library/indicator/smart-money-concepts-smc.md
- [Breaker Blocks with Signals](https://www.luxalgo.com/library/indicator/breaker-blocks-with-signals/) (Bullish/bearish Order Block): markdown at https://www.luxalgo.com/library/indicator/breaker-blocks-with-signals.md

---

Source: https://www.luxalgo.com/library/indicator/dynamic-order-blocks/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
