Hey community!
I have a very simple question for you! I am just trying to make the data split adjusted for all tickers in the ticker list.
Does anyone know why the following code does not work?
self.symbolData = {}
self.ticker_list = ['AAPL', 'USO']
for ticker in self.ticker_list:
symbol = self.AddEquity(ticker).Symbol
self.symbolData[symbol] = SymbolData(self, symbol)
for symbol, data in self.symbolData.items():
data.symbol.SetDataNormalizationMode(DataNormalizationMode.SplitAdjusted)
And then the error I get is:
'Symbol' object has no attribute 'SetDataNormalizationMode'
Thank you for taking to the time to read this! Let me know what you guys think is going on!
Best,
Jesse
Nico Xenox
Hey Jesse Fleming,
I'm not sure but I think you dont need data:
Hope it helps ;)
Jesse Fleming
Hey Nico!
Thank you for your usual timely and helpful response. Here is the error message I get.
'Symbol' object has no attribute 'SetDataNormalizationMode', at Initialize, symbol.SetDataNormalizationMode(DataNormalizationMode.SplitAdjusted),
Isn't this weird? I would have not expected this of all things to be giving me issues! Let me know what you think!
Thank you for your time and keep me posted on what you think the solution could be!
Best,
Jesse
Nico Xenox
Hey Jesse Fleming,
sry thats totally my fault. You can do it like this, I also tested it:
This way you can set the mode as soon as you add the tickers and you dont need the extra step you did.
hope it helps ;)
Jesse Fleming
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!