Regarding Jared's earlier solution, I need an event fire at 09:34:30AM each trading day. I have jimmied the following code, but on back test it fires at 12:00. Can anyone here suggest what the problem is?
public override void Initialize()
{
...
Schedule.Add(new NineThirtyFourThirty());
{
Debug("Scheduled for 9:34:30, Fired: " + Time);
}
}
namespace QuantConnect {
class NineThirtyFourThirty : ScheduledEvent {
public NineThirtyFourThirty()
: base("NineThirtyFourThirty", new DateTime(), null){}
public new DateTime NextEventUtcTime {
get { // Any UTC time.
return new DateTime(9,34,30);
}
}
}
}
console output:
594 | 14:59:32:
Scheduled for 9:34:30, Fired: 6/3/2018 12:00:00 AM