TradingWolf

Pivot Order Blocks

TradingWolf Updated   
// How it Works \\
Order Blocks based on pivot reversal candle
When a pivot High or Pivot Low is found and confirmed, a box will be plotted on the open and close values of that pivot candle

// Settings \\
In the settings you have the ability to change the distances required to confirm an pivot High or Low
These are the lengths where the script checks to see if it is at its local high or low.

You also have the ability to change the amount of candles the box stretches over as well as the colors of the bullish and bearish boxes

// Use Case \\
Pivot points often provide Support and Resistance points on their own,
one way of marking up order blocks is by taking the pivot candle and marking that up as a resistance area where you could be looking for price to reverse


// Suggestions \\
Happy for anyone to make any suggestions on changes which could improve the script,

// Terms \\
Feel free to use the script, If you do use the script could you please just tag me as I am interested to see how people are using it. Good Luck!
Release Notes:
Added an option to be able to choose whether you take the Highs and Lows from Wicks or the bodies of the candles
Release Notes:
Added option to have boxes extend until price hits them.
Once price hits them they will change to the chosen colour in the settings.
If you want them to be invisible set the opacity to 0% on the closed colour

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 a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?