OPEN-SOURCE SCRIPT
Updated

Filtered DTR Table

219
📊 Filtered Daily True Range (DTR) Indicator
This indicator calculates and displays a filtered version of the Daily True Range (DTR) over the last 14 trading days, using high and low prices of each day.

It filters out extreme values by excluding any daily range that is:

Less than 0.5× the average range

Greater than 2× the average range

The indicator shows a table in the bottom-right corner of the main chart, containing:

Filtered ATR – The average of valid (filtered) daily ranges over the past 14 days, based on the high-low difference.

Current Day's Range – The high-low range of the current trading day.

% of ATR – How much of the filtered ATR has been covered by today's range, expressed as a whole number percentage.
Release Notes
DTR Whith out 2x. 0.5x dtr

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.