In an algorithm I have
def Initialize(self) -> None:
self.SetStartDate(2020,2,1)
self.SetEndDate(2023,1,20)
self.SetCash(100000)
data_mode = self.AddEquity("EQT", Resolution.Daily)
self.symbol = self.AddEquity("EQT", Resolution.Daily).Symbol
data_mode.SetDataNormalizationMode(DataNormalizationMode.Adjusted)
The algo runs fine, but I was looking at the code and though, that does look weird, so I tried
def Initialize(self) -> None:
self.SetStartDate(2020,2,1)
self.SetEndDate(2023,1,20)
self.SetCash(100000)
self.symbol = self.AddEquity("EQT", Resolution.Daily).Symbol
self.symbol.SetDataNormalizationMode(DataNormalizationMode.Adjusted)
And this returned the error ‘'Symbol' object has no attribute 'SetDataNormalizationMode'’. This is what I get trying to cobble code together from the documentation, lol. Would u pls explain what is going on?