OPEN-SOURCE SCRIPT
Candle Body Volatility Histogram

This is a statistical analysis tool for TradingView designed to visualize the volatility of candle bodies. Unlike standard indicators that focus on price levels, this one measures the "thickness" of the candle ($|Open - Close|$) and determines how significant a move is compared to recent history.Here is the overview of the Candle Body Volatility Histogram:1. Core Logic: Statistical Body AnalysisThe script applies the concept of Standard Deviation (Sigma)—commonly used in Bollinger Bands—directly to the size of the candle bodies.Body Size ($|Open - Close|$): It ignores the wicks and calculates the pure strength of the close.Average Body (SMA): The yellow line represents the "normal" size of a candle over the lookback period (default: 20).Sigma Levels (1σ, 2σ, 3σ): These lines act as thresholds to identify statistically unusual price action.2. Visual ComponentsThe indicator appears in a separate sub-window with the following elements:ElementDescriptionHistogram (Bars)Color-coded based on the candle type: Lime for Bullish, Red for Bearish.Yellow LineThe Average Body Size. If bars are below this, the market is quiet.Sigma 1, 2, 3 LinesBlue-toned lines showing increasing levels of volatility.Blue Background FillHighlights the area between Sigma 2 and Sigma 3, marking the "Extreme Volatility Zone."
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。