Does anybody know why this would be?
Initialise works fine for EURUSD, with any dates and resolution but as soon as it reaches OnData it keeps defaulting to March 17th 2024 and i am unable to work on the data i want.
Thanks
QUANTCONNECT COMMUNITY
Does anybody know why this would be?
Initialise works fine for EURUSD, with any dates and resolution but as soon as it reaches OnData it keeps defaulting to March 17th 2024 and i am unable to work on the data i want.
Thanks
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
Based on the information provided in the knowledge sources, there could be a few reasons why you're experiencing this issue.
AddForex
orAddEquity
methods. For example, if you want to use minute data, you would do something like this in Python:And in C#:
(Source: Forex Data)
OnData
method before trying to access it. TheSlice
object that is passed to yourOnData
method may not contain data for your security at every time step. Here's how you can do this check in Python:And in C#:
(Source: Forex Data)
Without more specific details about your algorithm, it's hard to provide a more precise answer. If none of the above suggestions help, I would recommend posting your issue on the QuantConnect Forum with more details about your algorithm and the exact error message you're seeing. The community and the QuantConnect team can provide more targeted assistance there.
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.
Darren Maddox
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!