OPEN-SOURCE SCRIPT
Average Volatility

This script offers a unique and practical approach to visualizing average volatility by calculating a simple moving average of the daily high-low ranges, directly reflecting price fluctuations over a user-defined period. Unlike standard volatility indicators, it provides customizable options such as adjustable period length, display of absolute and percentage volatility values, and flexible text formatting for clear and tailored insights. This makes it a valuable tool for traders seeking to better understand market volatility trends and manage risk more effectively. Its straightforward visualization supports informed decision-making across various instruments and timeframes.
The indicator displays the average volatility over a configurable period as a bar chart (originally designed for daily intervals). It visualizes the price range (difference between high and low) across a selectable number of periods, as well as its ratio to the closing price, offering various customization options.
For many traders, assets with daily moves of 1% or more may offer greater profit opportunities, especially for short-term trading strategies. Instruments with lower volatility are generally less favored and often not recommended in such approaches due to reduced trading potential. Please note that higher volatility also implies increased risk, and potential losses can be significant. Always use proper risk management.
Detailed description:
The script calculates average volatility as a simple moving average of the high-low ranges (default: 5 periods, intended for daily timeframes). Volatility can be shown as either a bar or line chart. Users can choose to display the absolute volatility values and/or the volatility expressed as a percentage of the closing price. Text size and spacing between labels are adjustable to ensure readability across different instruments. Additionally, the last (unconfirmed) bar can be shown or hidden, since its value depends on the current price. Overall, the script provides a flexible and clear visualization of an instrument’s volatility.
---
Russian:
Индикатор отображает среднюю волатильность как простое скользящее среднее диапазонов «максимум-минимум» (по умолчанию 5 периодов, предназначено для дневных таймфреймов). Волатильность может отображаться в виде столбчатой или линейной диаграммы. Пользователи могут выбрать отображение абсолютных значений волатильности и/или волатильности, выраженной в процентах от цены закрытия. Размер текста и расстояния между надписями регулируются для удобочитаемости на разных инструментах. Кроме того, последний (неподтверждённый) столбец можно показать или скрыть, так как его значение зависит от текущей цены. В общем, скрипт обеспечивает гибкое и наглядное отображение волатильности инструмента.
Активы с волатильностью от 1% и выше дают больше возможностей для краткосрочной торговли, но риск также выше. Инструменты с низкой волатильностью не рекомендуются для таких подходов из-за ограниченного торгового потенциала и сложности в реализации прибыльных сделок. Всегда применяйте риск-менеджмент.
---
Spanish:
El script calcula la volatilidad promedio como un promedio móvil simple de las diferencias entre máximos y mínimos (por defecto 5 periodos, pensado para intervalos diarios). La volatilidad puede mostrarse como gráfico de barras o de líneas. El usuario puede elegir mostrar los valores absolutos de la volatilidad y/o los valores expresados en porcentaje respecto al precio de cierre. El tamaño del texto y el espacio entre las etiquetas son ajustables para garantizar la legibilidad en diferentes instrumentos. Además, se puede mostrar u ocultar la última barra (no confirmada), ya que su valor depende del precio actual. En conjunto, el script proporciona una visualización flexible y clara de la volatilidad del instrumento.
Los activos con una volatilidad del 1% o más ofrecen mayores oportunidades para el trading a corto plazo, pero también conllevan un mayor riesgo. Los instrumentos con baja volatilidad no se recomiendan para este tipo de estrategias debido a su limitado potencial de trading y la dificultad para obtener ganancias. Siempre utilice una gestión de riesgos adecuada.
The indicator displays the average volatility over a configurable period as a bar chart (originally designed for daily intervals). It visualizes the price range (difference between high and low) across a selectable number of periods, as well as its ratio to the closing price, offering various customization options.
For many traders, assets with daily moves of 1% or more may offer greater profit opportunities, especially for short-term trading strategies. Instruments with lower volatility are generally less favored and often not recommended in such approaches due to reduced trading potential. Please note that higher volatility also implies increased risk, and potential losses can be significant. Always use proper risk management.
Detailed description:
The script calculates average volatility as a simple moving average of the high-low ranges (default: 5 periods, intended for daily timeframes). Volatility can be shown as either a bar or line chart. Users can choose to display the absolute volatility values and/or the volatility expressed as a percentage of the closing price. Text size and spacing between labels are adjustable to ensure readability across different instruments. Additionally, the last (unconfirmed) bar can be shown or hidden, since its value depends on the current price. Overall, the script provides a flexible and clear visualization of an instrument’s volatility.
---
Russian:
Индикатор отображает среднюю волатильность как простое скользящее среднее диапазонов «максимум-минимум» (по умолчанию 5 периодов, предназначено для дневных таймфреймов). Волатильность может отображаться в виде столбчатой или линейной диаграммы. Пользователи могут выбрать отображение абсолютных значений волатильности и/или волатильности, выраженной в процентах от цены закрытия. Размер текста и расстояния между надписями регулируются для удобочитаемости на разных инструментах. Кроме того, последний (неподтверждённый) столбец можно показать или скрыть, так как его значение зависит от текущей цены. В общем, скрипт обеспечивает гибкое и наглядное отображение волатильности инструмента.
Активы с волатильностью от 1% и выше дают больше возможностей для краткосрочной торговли, но риск также выше. Инструменты с низкой волатильностью не рекомендуются для таких подходов из-за ограниченного торгового потенциала и сложности в реализации прибыльных сделок. Всегда применяйте риск-менеджмент.
---
Spanish:
El script calcula la volatilidad promedio como un promedio móvil simple de las diferencias entre máximos y mínimos (por defecto 5 periodos, pensado para intervalos diarios). La volatilidad puede mostrarse como gráfico de barras o de líneas. El usuario puede elegir mostrar los valores absolutos de la volatilidad y/o los valores expresados en porcentaje respecto al precio de cierre. El tamaño del texto y el espacio entre las etiquetas son ajustables para garantizar la legibilidad en diferentes instrumentos. Además, se puede mostrar u ocultar la última barra (no confirmada), ya que su valor depende del precio actual. En conjunto, el script proporciona una visualización flexible y clara de la volatilidad del instrumento.
Los activos con una volatilidad del 1% o más ofrecen mayores oportunidades para el trading a corto plazo, pero también conllevan un mayor riesgo. Los instrumentos con baja volatilidad no se recomiendan para este tipo de estrategias debido a su limitado potencial de trading y la dificultad para obtener ganancias. Siempre utilice una gestión de riesgos adecuada.
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.