OPEN-SOURCE SCRIPT

Order Blocks

Updated
This is experimental Indicator is to help identifying Order Blocks.

It uses not confirmed higher order pivots as Higher Highs (HH) and Lower Lows (LL), finds high/lows that created most recent LL/HH and in case if this high/low are broken it notes candle that broke structure, market structure broke line (MSB) and demand box (candle that created liquidity for the move that broke structure).

Concepts and parts of code used in this study:
1) rumpypumpydumpy - Higher Order Pivots
tradingview.com/v/x2LlRvBe/
2) MarkMiddleton2020 - Order Blocks
tradingview.com/v/GecN34Qq/
Release Notes
- added labels for pivots
- added ability to select the msb trigger - close&open or high&low
Candlestick AnalysisPivot PointsTrend 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