OPEN-SOURCE SCRIPT

Volatility Trigger Index

The script allows to assess the volatility of an asset.
It works by calculating the rate of change and the standard deviation.

The index is useful to determine the lowest volatility periods (could be useful to look strategies) and also it determine the highest volatility periods (maybe for exits or partial closes).

It has 3 iputs:
  • Lenght.
  • Low volatility value.
  • High volatility value.


The low and high values are set after a visual inspection. The values changes in each time frame. Usually when the timeframe is higher the value of the index is higher as well. So the low and high levels must be changed after each time frame set.

As an idea could be used in combination with any moving average to determine the market direction and the index used as a trigger.
educationalmultitimeframenondirectionaltriggervolatilidadVolatilityvolatilityindexvolatilityindicatorvolatilitytrading

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