US Recessions

There are a couple of other Pine Scripts on TradingView that others have kindly contributed but they are presently out-dated because they shade recessions based on manual entries of time. Thanks to the availability of pulling data from QUANDL, we can pull official data from FRED on data like US Recessions.

The FRED series data is taken from is here-

"Our time series is composed of dummy variables that represent periods of expansion and recession. A value of 1 is a recessionary period, while a value of 0 is an expansionary period. For this time series, the recession begins on the 15th day of the month of the peak and ends on the 15th day of the month of the trough. This time series is a disaggregation of the monthly series."

This series tracks back to 1854, but good luck finding much of any data on TradingView that goes that far back :)
Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con las Normas internas. Puede marcarlo como favorito para usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?


Thank You Chris for posting this, very helpful for us all!
+1 Responder