OPEN-SOURCE SCRIPT

Volatility Dashboard

От snowdex
This indicator calculates and displays volatility metrics for a specified number of bars (rolling window) on a TradingView chart. It can be customized to display information in English or Thai and can position the dashboard at various locations on the chart.

Inputs
  1. Language: Users can choose between English ("ENG") and Thai ("TH") for the dashboard's language.
  2. Dashboard Position: Users can specify where the dashboard should appear on the chart. Options include various positions such as "Bottom Right", "Top Center", etc.
  3. Calculation Method: Currently, the script supports "High-Low" for volatility calculation. This method calculates the difference between the highest and lowest prices within a specified timeframe.
  4. Bars: Number of bars used to calculate the volatility.


Display Logic
  1. Fills the islast_vol_points array with the calculated volatility points.
  2. Sets the table cells with headers and corresponding values:
    => Highest Volatility: The maximum value in the islast_vol_points array
    => Mean Volatility: The average value in the islast_vol_points array,
    => Lowest Volatility: The minimum value in the islast_vol_points array, Number of Bars: The rolling window size.






statisticsVolatility

Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Хотите использовать этот скрипт на графике?

Отказ от ответственности