volatility_24h
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © federalTacos24740

//@version=5
indicator("volatility_1m_close", timeframe='1',overlay=true)

arr = array.new_float(1440)

for i = 0 to 1439
    roc=math.log(close[i]/close[i+1])
    array.push(arr, roc)
    
sd = array.stdev(arr)
vol=100*sd*math.sqrt(1440)


plot(vol)
