# region imports

from AlgorithmImports import *

# endregion


 

class DemoAC(QCAlgorithm):


 

    def initialize(self):

        # Locally Lean installs free sample data, to download more data please visit https://www.quantconnect.com/docs/v2/lean-cli/datasets/downloading-data

        self.set_start_date(2023, 10, 7)  # Set Start Date

        self.set_end_date(2024, 11, 11)  # Set End Date

        self.set_cash(100000)  # Set Strategy Cash

        self.add_equity("SPY", Resolution.DAILY)

        self.set_warm_up(14)

    def on_data(self, data: Slice):

        if self.is_warming_up:

            return

       

        if not self.portfolio.invested:

            self.set_holdings("SPY", 1)

            self.debug("Purchased Stock")



it is simple script but Quantconnect not processing order, if I change start date to 2017-01-01 it works but not with the latest one.