コード例 #1
0
        public static bool AddMarketOpenReminder(this Strategy strategy, TimeSpan offset, object state = null)
        {
            var date = GetNextMarketOpenTime(strategy, strategy.Instruments.First());

            if (date != DateTime.MaxValue)
            {
                strategy.AddReminder(date.Add(offset), state);
                return(true);
            }
            return(false);
        }