OPEN-SOURCE SCRIPT
Updated LTP - Risk Ranges

This indicator shows volume and volatility adjusted risk ranges for the price.
Based on the previous volume in upside (downside) movements and the volatility of these upside (downside) movements a plausible range to the upside (downside) is calculated and drawn.
Release Notes
* Bug fixing* cleaned up code
Release Notes
* minor fixingsRelease Notes
// Version 2.4// - using linear regression instead of simple moving average in
// order to calculate the deviation
// Version 2.3
// - Adjustment to the calculation of the upwards (downwards)
// deviation
// - range is at least Average True Range from opening price away
// Version 2.0
// - Adding rescaling to the price ranges
Release Notes
Preview picture might have been not okay. Therefore, I am republishing the updateOpen-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.