US Consumer Confidence and Yield Curve

Back

Ok so I asked a similar question to this before and I was told to check if TNX-IRX < 0. How would I do that in Python and simultaniously check if US Consumer Confidence is over 100. Any help would be appreciated, thanks.

Update Backtest







 
0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Hi Hero of Hell,

We don’t index data and we don’t support Index Option trading. However, it is possible to test your strategy using custom data from Yahoo Finance for the IRX and TNX indices. Additionally, we can access consumer confidence through our alternative data collection. See the attached backtest that shows how this can be implemented.

Taking a look at the custom charts the backtest generates, it can be seen that during the period we have all three data sources available (2013 onward), the condition of TNX-IRX < 0 and confidence > 100 is rarely satisfied. Although, this backtest period can be extended further into the past by importing consumer confidence data from a custom data source.

1

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed