IsClosingSoon(15) returns true/false if the market is closing within 15 minutes.

Here's the log.

// 00:00:00 is midnight. IsClosingSoon(15) should be false
2024-05-01 00:00:00 : IsMarketOpen True IsClosingSoon True

// This is correct
2024-05-01 09:15:00 : IsMarketOpen True IsClosingSoon False

// This is correct
2024-05-01 16:45:00 : IsMarketOpen True IsClosingSoon True

// The market is closed. IsClosingSoon(15) should be false
2024-05-01 17:00:00 : IsMarketOpen False IsClosingSoon True

// The market is open. IsClosingSoon(15) should be false
2024-05-01 18:01:00 : IsMarketOpen True IsClosingSoon True