MMRI+MA
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © WingsFarm

//@version=5
indicator('MMRI+MA')

US10Y = nz(request.security('TVC:US10Y', timeframe.period, close))
DXY = nz(request.security('TVC:DXY', timeframe.period, close))

X = (US10Y * DXY)/1.61

len = input.int(21, minval=1, title="Length")
out = ta.sma(X, len)

plot(X)
plot(out, color = color.new(color.red, 0))

