Hello everyone, I am trying to follow a simple strategy of defining self.AddUniverse(self.CoarseSelectionFunction, self.FineSelection) based on certain critera's . During runtime, my FineSlection select GOOGL and then I am initiating SymbolData object to monitor this ticker data
for x in fine:
symbolData = self.symbolDataBySymbol.get(x.Symbol)
if symbolData is None:
self.symbolDataBySymbol[x.Symbol] = SymbolData(self, self.AddEquity(x.Symbol,self.resolution).Symbol,self.resolution)
class SymbolData:
def __init__(self, algorithm, symbol, resolution):
self.algorithm = algorithm
self.symbol = symbol
self.resolution = resolution
the problem is that I pass "GOOGL" but SymbolData.symbol sets "GOOG"
what am I doing wrong?
thanks
AlexP
still can't find the solution; I know that GOOGL and GOOG swapped tickers sometime ago but I am testing using data from 2020 and surely this should not be the case unless some explicit action is required
thanks
Derek Melchin
Hi AlexP,
We were unable to reproduce this. Please attach a backtest which demonstrates the issue so we can further assist.
Best,
Derek Melchin
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.
AlexP
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!