I am new to QuantConnect but it seems weird that the backtest can never go past 12/25/2024.

 

I can start from 10/2/2024 and end on 1/3/2025, but the backtest still ends at 12/25/2024.

 

If I start after 12/25/2024, the behavior is the same; e.g. when I go from 1/5/2025 to 2/5/2025, the logs show that I started and ended on 12/25/2024 (even though I started after this point).

 

Here is what I have:

  1. def initialize(self):
  2. self.set_start_date(2024, 12, 20)
  3. self.set_end_date(2025, 1, 30)
  4. self.set_cash(20000)
  5. future = self.add_future(ticker = Futures.Indices.MICRO_NASDAQ_100_E_MINI, resolution = Resolution.Second, extended_market_hours = True)
  6. future.set_filter(min_expiry_days = 0, max_expiry_days = 183)
  7. def on_data(self, data: Slice):
  8. pass

Author

QuantHeart

5 days ago