BTC TOTALVOLUME MOMENTUM: Onchain
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © MJShahsavar

//@version=5
indicator("BTC TOTALVOLUME MOMENTUM: Onchain", timeframe = "D", overlay=true)

R = input.symbol("BTC_TOTALVOLUME", "Symbol")
src = request.security(R, 'D', close)
D = ta.sma(src, 30)
M = ta.sma(src, 365)
plot (M, color= color.red ,  linewidth=1)
plot (D, color= color.blue ,  linewidth=1)