Federal Funds Rate and Overnight Bank Fund Rate
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © MrDevDevy

//@version=5
indicator("Federal Funds Rate and Overnight Bank Fund Rate")

OverNightColor  = input.color(defval=color.red,     title="Over Night Color")
UpperboundColor = input.color(defval=color.blue,    title="Upper Bound Color")
LowerboundColor = input.color(defval=color.blue,    title="Upper Bound Color")
FedRateColor    = input.color(defval=color.yellow,  title="Fed Funds Rate Color")

OverNightRate   = request.security("OBFR",      "D", close)
Upperbound      = request.security("DFEDTARU",  "D", close)
LowerBound      = request.security("DFEDTARL",  "D", close)
FedFundsRate    = request.security("FEDFUNDS",  "D", close)

plot(OverNightRate, color=OverNightColor)
plot(Upperbound,    color=UpperboundColor)
plot(LowerBound,    color =LowerboundColor)
plot(FedFundsRate,  color=FedRateColor)