BELOW IS THE TRADING VIEW SCRIPT
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © wugamlo
//@version=4
study(title="Panel Historical Volatility (na)", shorttitle="Panel Hist Volatility (na)", overlay = true)
//SMA200
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// === INPUTS ===
length = input(title="Length", type=input.integer, defval=200, minval=1)
sma = sma(close, length)
plot(sma)