Amphibiantrading

ATR Candles

Average true range (ATR) is a market volatility indicator used to show the average range prices swing over a specified period.

The ATR Candles indicator has two primary functions. First, it measures a short-term ATR against a longer-term ATR to show if volatility is contracting or expanding.
Secondly, this indicator goes a step further by highlighting individual candles that exceed or fall below user selected ATR thresholds.

Moments of volatility contraction often lead to expansion and vice versa. By using the ATR Candles traders can identify potential imminent breakouts/breakdowns or healthy pullbacks vs a volatile correction.

Indicator Features
  • Selectable ATR lengths
  • Selectable threshold limits (1 contraction / 2 expansion)
  • Calculate current candles range from open / previous close / daily range
  • Custom colors
  • Show or hide every element
Release Notes:
Added option to see ATR Range Boxes.

If there is a candle that meets the requirements for an Expansion Candle there is now the option to draw a box around the range selected from your ATR source. Box will continue to extend until price breaks the top or bottom of the range.

You can also chose the maximum number of boxes to see on the chart, to only see the last box set this number to 1.

Modified TradingView's Gap indicator for the methods to create and manage the boxes.
Release Notes:
Removed the boxes from the last update to just be simple lines plotted at the open and closing price the latest expansion candle.
Release Notes:
Code clean up from last update.
Release Notes:
Update to give user choice between ATR or ADR.

Trusted Pine programmer. Send me a message for script development.
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?