Hello, I am new here.. Nowadays I met a problem with data. Ideally, I would like to use daily close price to derive the signals such as MACD or MA, but the date of time series looks not correct..(It should be my mistake)

As the figure shows, the daily close prices during a week are from Tuesday to Saturday (2021-12-07 to 2021-12-11) but it should be from Monday to Friday (2021-12-06 to 2021-12-10)…  

193528_1652120830.jpg


Here is what I did:
(1) Set a time zone:

 self.SetTimeZone("America/New_York")

(2) Add a security:

 self.security = self.AddEquity("SPY", Resolution.Daily)

(3) Set a Schedule (I would like to get the signal 5 mins before the market close)
self.Schedule.On(self.DateRules.EveryDay(), self.TimeRules.BeforeMarketClose('SPY', 5), self.calculate_signal)

(3) Pull Historical data (close price)
self.df_SPY = self.History(self.Symbol("SPY"), 100)["close"]

Can anyone help me with this?
 

Best,

Arthur