private bool IsEndOfWeek() { var isEow = ServerTime.DayOfWeek == DayOfWeek.Friday && ServerTime.ToUniversalTime().Hour > 20 || (!TradeOnBOW && IsBeginningOfWeek()); if(isEow) Log = new Exception(new { isEow } + ""); return isEow; }
private bool IsEndOfWeek() { var isEow = ServerTime.DayOfWeek == DayOfWeek.Friday && ServerTime.ToUniversalTime().Hour > 20 || (!TradeOnBOW && IsBeginningOfWeek()); if(isEow) Log = new Exception(new { isEow } + ""); return isEow; }