OPEN-SOURCE SCRIPT
Updated Order Blocks with signals

In order to trade the order blocks effectively, you have to look for an area on the price chart where the price had a large move. This script automatically draws the order blocks for you, so you don't have to.
Blue OB (supply): search for short opportunities
Green OB (demand): search for long opportunities
Please be aware: Do not buy and sell from every order block.
You can set two types of alerts:
- Buy
- Sell
Some short information about order blocks:
Order blocks are huge institutional buy or sell orders placed over a particular period. During these, the institutional players are looking to build up their positions in the markets.
Blue OB (supply): search for short opportunities
Green OB (demand): search for long opportunities
Please be aware: Do not buy and sell from every order block.
You can set two types of alerts:
- Buy
- Sell
Some short information about order blocks:
Order blocks are huge institutional buy or sell orders placed over a particular period. During these, the institutional players are looking to build up their positions in the markets.
Release Notes
Updated to PineScript v5Fixed Alert Bug
Added clearer code comments
Added ability to change OB Colors
Release Notes
Added the option to choose between either closes or wicks as an option for Order Block mitigationRelease Notes
Small bugs fixedRelease Notes
Minor bugs fixedRelease Notes
- Minor ChangesRelease Notes
Minor ChangesOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.