mcrypt28

Spread Percent

This indicator shows the percent change between the highs and the lows (or optionally the open and close) of each candle. You may also set a low and a high percent threshold to better highlight the candles that exceed your desired spread percent. Red signifies low spread, green is high spread - these are unrelated to the color of the candle body. There is also the option to display a moving average of the spread percent at your desired length which is a representation of volatility over time.

This is not only helpful for historical analysis over time, but this can also be a time saver if you are trying to calculate the measured distance of a move. Save clicks - no more needing to use the measuring tool.

The settings of the indicator on the chart above are:
- Measure Candle Body Only? - No
- Highlight Thresholds? - Yes
- Thresholds Based on Moving Averages? - Yes
- Low Percent Threshold - 3.0
- High Percent Threshold - 7.0
- Show Moving Average? - Yes
- Moving Average Length - 5

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

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.

Want to use this script on a chart?