Works only on Forex pairs. See the inside bar volatility
. Use precision to get data from lower time frames. Be aware that script initialization will be slower with the precision going higher. Added an option to show average volatility
for long term as forex market transactions grow rapidly, suppressing all other markets.