Quantopian's community platform is shutting down. Please read this post for more information and download your code.
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.

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...??