Order Block Finder (Experimental)

The purpose of this experimental Indicator is to help identifying Institutional Order Blocks.

Often these Order Blocks can be observed at the beginning of a strong move, but there is a significant probability that these price levels will be revisited at a later point in time again. Therefore these are interesting levels to place limit orders (Buy Orders for Bullish OB / Sell Orders for Bearish OB).

A Bullish Order block is defined as the last down candle before a sequence of up candles. (Relevant price range "Open" to "Low" is marked)
A Bearish Order Block is defined as the last up candle before a sequence of down candles. (Relevant price range "Open" to "High" is marked)

In the settings the number of required sequential candles can be adjusted.
Furthermore a %-threshold can be entered. It defines which minimum %-change the sequential move needs to achieve in order to identify a relevant Order Block. If this is used, it makes sense to adjust it to the timeframe which is analyzed as of course higher timeframes usually produce bigger moves.

Channels for the last Bullish / Bearish Block can be shown/hidden.

In addition to the upper/lower limits of each Order Block, also the equlibrium (average value) is marked as this is an interesting area for price interaction.

Please note that you can optionally display a "Docu"-Label which shows some information about the indicator as a tooltip.

As the identification of a relevant Order Block is only possible after the required number of subsequent candles has closed, this indicator "repaints" by definition. But I do not see this as an issue as the relevancy of the Order Blocks and the interaction of price with these levels usually only happens longer in the future anyway.
Release Notes: Update:

Received the request from @AtotheO to give the option to mark the full range "Low" to "High" (including both wicks) for each identified OB.

The underlying reason why I only used Open-Low for Bullish OBs and Open-High for Bearish OBs was the thought, that Institutional Investors are using these candles for their initial entries. So the assumption is that they are behaving "more smart" than the general market and tend to buy lower/sell higher that the average and therefore most probably have a more favourable entry price than the average. Therefore I left out the "unfavourable" wicks.

But I agree with the opinion that this should be selectable by the user of the indicator and here is the update:

New input field allows to select "Use whole range for OB marking". By default it is de-selected.

Release Notes: Cosmetic Update:

I received a number of remarks that the Bullish Order Blocks are not visible when bright chart background is used as they are printed in White.
I now added an option to choose a color scheme:

DARK (defaut): Bullish = White / Bearish = Blue
BRIGHT: Bullish = Green / Bearish = Red

Have fun and thanks for all the feedback.
Remove from Favorite Scripts Add to Favorite Scripts


This publication is now featured in our Editors' Picks. In the name of all TradingView traders, thank you for your valuable contribution to the TradingView community, and congrats!
+20 Reply
wugamlo PineCoders
@PineCoders, Thanks a lot! This is unexpected, but I am very happy about it! Thanks for building this community to make this possible!
+11 Reply
Comment removed.
CryptoChosenOne briefkamrock
@briefkamrock, not fake. I just arrived here from a Twitter post from TradingView's official account... so I guess it's good
BullishOB does not show
+6 Reply
wugamlo purneajobs
@purneajobs, thanks for your message. For me it is working without problem. Could it be that you are using white background? I am using dark background and I implemented the BullishOB in white color. I never tried it with white background and it could be that in that case it is not easily visible.
If this is the problem, then you could either try to change the color in the indicator settings - or another possibility would be that you copy the code and then change the white color to something else, e.g. orange. You would just need to replace the expression "white" with "orange" in lines 61, 62, 63, 64,65 and 84, 87, 90
+3 Reply
More like an eye candy
+2 Reply
Fricken Awesome Brother!
+2 Reply
Thanks you for sharing. Looks great!
+2 Reply
This is brilliant. You're brilliant. <3333333333333333333333333333333
+2 Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out