I want to wait for a specific time to send only one message and then start a strategy, so I want to do this under OnStarUp only one time before all the strategy other methods. I try this but the platform hang up:
protected override void OnStartUp()
{
while (DateTime.Now.TimeOfDay < triggerTime) // triggerTime is the time when I want to print the message
{
Print (" Waiting for this time: " + triggerTime.ToString());
}
Print (" Time Match!!!! ");
}
Thanks
Comment