SPY Offset
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Grynn (vishal.doshi@gmail.com)

//@version=5
indicator("SPY Diff", "Fair Value (lime)", overlay = true)
//spy = request.security("SP500", timeframe.period, ta.sma(close, 7))    //timeframe.period - use chart's timeframe
netliq = request.security("FRED:WALCL-(FRED:RRPONTSYD+FRED:WTREGEN)", timeframe.period, ta.sma(close, 7)/1000/1000/1000/1.1 - 1625)
upperBand = netliq + 350
lowerBand = netliq - 150
plot(netliq, title = "Net Liq", color= color.lime, linewidth = 4)
plot(upperBand, color= color.red, linewidth = 4)
plot(lowerBand, color= color.green, linewidth = 4)

//diff = spy - netliq
//plot(spy, title = "SPY", color= color.blue, linewidth = 4)



