OPEN-SOURCE SCRIPT

Volatility (Body and Weighted Shadow)

- Volatility Indicator
- Replacement for ATR
- As each pair holds a different level of volatility, a stop loss can be set using this indicator rather than via a ratio 2:1, etc. e.g. 2 X Volatility Value = S/L...
- This indicator averages the bodies of candlesticks over a default length of 14 periods. It also considers the length of shadows via a weighted average. This is done as it is assumed that financial institutions tend to move price to levels that do not hold (shadows). Therefore, wick lengths are less significant than the candlestick bodies, so they are weighted to hold less value.
ATRpriceshadowVolatilityvolatilityindicatorwick

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer