This indicator used to calculate the statistical volatility, sometime called historical volatility, based on the Extreme Value Method. Please use this link to get more information about Volatility.
You can change long to short in the Input Settings WARNING: - For purpose educate only - This script to change bars colors.