OPEN-SOURCE SCRIPT

Risk On Risk Off

A helpful indicator for those who follow a systematic long-term investment approach.

What it shows:
It shows the 60 Day Cumulative Return of BND Vanguard Total Bond Market ETF against the 60 Day Cumulative Return of BIL SPDR Bloomberg Barclays 1-3 Month T-Bill ETF.

Why:
This Indicator will provide you a sense of where the economic environment is at, if the indicator shows that the 60 Day Cumulative return of BND is ABOVE BIL, it means that it's a good idea to go Risk ON in the stock market; On the other hand, if the inverse is true, it means that is a good idea to go Risk OFF in the stock market.

Example Uses:
Warren Buffet often advice Investors to just buy a S&P500 index tracking ETF like SPY consistently and you will likely to be making money in the long-term.

With this indicator you will be able to make the Buffet Strategy even simpler: when the indicator shows Risk ON, buy the SPY; when the indicator shows Risk OFF, consider hedges like IEF iShares 7-10 Year Treasury Bond ETF.SPY
BNDIEFPortfolio managementsentimentSPDR S&P 500 ETF (SPY) Trend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer