Fed Funds Rate Indicator
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// @version = 5
// Author = TradeAutomation

indicator("Fed Funds Rate", shorttitle="Fed Funds Rate", overlay=false)

//Selects Data Source
Rate = input.string(title="Data Source", defval="FRED:EFFR", options=["FRED:FEDFUNDS", "FRED:EFFR"], tooltip="FEDFUNDS Updates Monthly instead of daily, but has decades of additional historical data.")

//Pulls in Fed Rate Data
Resolution = input.timeframe(title="Resolution", defval="D")
FedRate = request.security(Rate, Resolution, close)

//Plots the Indicator
plot(FedRate, color = color.purple)
