I've poured over the docs and have spent a few hours tinkering but can't seem to get a timer to working so it fires before every trading day (pre market). Is this even possible with the current system?
I've tried `Schedule.On(DateRules.EveryDay(), TimeRules.AfterMarketOpen("SPY", -20)` but a negative number doesn't work, it still fires at 1 min after open.
I've also tried `Schedule.On(DateRules.EveryDay(), TimeRules.At(8, 0)` and that also fires at 9:31.
Schedule.On(DateRules.EveryDay(), TimeRules.At(8,0), () =>
{
//prints 2017-03-22 09:31:00 : Pre market at 8am: 03/22/2017 08:00:00
Log("Pre market at 8am: " + Time);
// prints 2017-03-22 09:31:00 : watchlist: ["OMNT"]
fetchAndSetWatchlist();
});
If you notice, the LEAN timestamps are labeled 09:31 while the `Time` log is printing 8am when it was scheduled, however the fetch watchlist function (inside the lambda) fires at 9:31 (also confirmed since I get an error with trade bars not being available for that min).