109 Historical volatility (hv)

The difference between close and prior close (volatility) is used to stimate the standard deviation. Calculated as:

hv = 100 * ta.stdev(math.log(close / close[1]), length)

Historical volatility

Figure 12.14: Historical volatility