Back to Community
Recession Tracker

This is a simple recession tracker that I've started using with my algorithms. It uses the treasury yield curve to predict when we might be in a recession.

Clone Algorithm
31
Loading...
Backtest from to with initial capital
Total Returns
--
Alpha
--
Beta
--
Sharpe
--
Sortino
--
Max Drawdown
--
Benchmark Returns
--
Volatility
--
Returns 1 Month 3 Month 6 Month 12 Month
Alpha 1 Month 3 Month 6 Month 12 Month
Beta 1 Month 3 Month 6 Month 12 Month
Sharpe 1 Month 3 Month 6 Month 12 Month
Sortino 1 Month 3 Month 6 Month 12 Month
Volatility 1 Month 3 Month 6 Month 12 Month
Max Drawdown 1 Month 3 Month 6 Month 12 Month
# Backtest ID: 5665ca4d3e37011169341f60
There was a runtime error.
3 responses

Hi. I have a few questions.
Q1. The unit of date had be capitalized when I ran the code. ex> 'Mo' -> 'MO', 'Yr' -> 'YR'
Q2. I'd appreciated if you could add some comments about the logic. For example, when 3 Mo > 10 Yr, you define recession period as 365-180 days from today to 365+180days from today. (if I understood correctly). Is it common sense? If not, can you provide any references?
Q3. Is there any reason why you added US treasury data in 'SPY', rather than defining it as a separate data?

Q4. Can that treasuries data also be used to calculate beta (then dynamically do more/less shorting to target beta zero).

The order canceling won't work there, use one of these instead.

it doesnt work... is quandl still.. supported...??