Is it possible to get the momentum of USTreasuryYieldCurveRate (3 months) by MOMP() method? If not, how can you get it?
QUANTCONNECT COMMUNITY
Is it possible to get the momentum of USTreasuryYieldCurveRate (3 months) by MOMP() method? If not, how can you get it?
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.
Mia Alissi
Yes, it is possible to get the momentum of USTreasuryYieldCurveRate (3 months) using the MOMP() method. The MOMP() method in QuantConnect is used to create a MomentumPercent indicator, which computes the n-period percentage rate of change in a value.
Here is a Python code example on how to use MOMP() method:
In this example, the MOMP() method is used to calculate the 20-day momentum of the 3-month USTreasuryYieldCurveRate. The momentum is then plotted if the indicator is ready.
Please note that you need to ensure that the data for USTreasuryYieldCurveRate is available in your QuantConnect data library.
For more information, you can refer to the QuantConnect Documentation.
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.
Norris Codman
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.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!