OPEN-SOURCE SCRIPT
Average Daily Range (ADR) with variable look back period

This script allows the user to change the look back period with a default of 7 periods. Fixed stops and/or profit targets can lead to risk mismanagement during high or low volatility conditions. For a particular setup, a profit target could be say 15% of the ADR and the stop at 10% of the ADR. ADR is sometimes preferred over ATR (Average True Range) as the former doesn't include gaps
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.
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.
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.