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)
Figure 12.14: Historical volatility