/// <summary> /// This is for the main algo thread to wait until the trading day is over. /// </summary> private void WaitToContinue() { while (TC.CheckNotStopped() && !TradingManagerTC.IsOver()) { Thread.Sleep(300); } }