As in the title, I tried to run a couple backtests today and the results were off. In inspecting further, I found that my runs from yesterday (or the day before) were using adjusted prices, but today's runs were using raw prices. I hadn't made any changes and tried to rerun the code from two days ago and got the same result. Was there a change or an update anywhere?
Mia Alissi
It seems there might have been a change in how your algorithm's data normalization mode was set, or possibly a change in the platform's default settings. Here's what you can do to ensure your algorithm uses the desired data normalization mode:
Explicitly Set Data Normalization Mode: Ensure that your algorithm explicitly sets the
data_normalization_mode
for each security. You can do this using theadd_equity
method or by setting it in theuniverse_settings
property.Check for Platform Updates: There might have been updates or changes in the QuantConnect platform affecting default settings. It's always a good idea to check the QuantConnect forums or announcements for any updates.
Verify Initialization: Make sure your algorithm's
initialize
method correctly sets thedata_normalization_mode
for all securities. This ensures consistency across different runs.Documentation and Support: If the issue persists, consult the QuantConnect documentation and forums for any announcements related to changes in data normalization practices or defaults. You can also reach out to QuantConnect support for further assistance.
By explicitly setting the data normalization mode, you can avoid unexpected changes in your backtest results due to platform updates or default setting changes.
Sources: Set Equity Data Normalization Mode On Add Equity, US Equity - QuantConnect.com, Universe Settings - QuantConnect.com, Settings - QuantConnect.com, Raw Prices Universe Regression Algorithm
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.
Emile Farkouh
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!