OPEN-SOURCE SCRIPT
ADR - Average Daily Range [@treypeng] [v2]

This is an intraday indicator.
Average Daily Range provides an upper and lower level around the daily open. It is calculated by taking an EMA/SMA average of a given number of previous days' True Range.
It can be useful for helping guide support and resistance, for taking profits and for placing stops.
It's a similar idea to the ATR indicator, but calculated on a daily timeframe only.
Settings:
Length: number of days to take an average from
Offset: Set this to 0 to include today's range. Set to 1 to exclude today. Set to 2 to exclude today and yesterday.....and so on.
The other settings should be self explanatory :)
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.
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.