private void UpdateEmptyCollections(DateTime algorithmTime)
        {
            // just in case
            _emptyTradeBars.Clear();
            _emptyQuoteBars.Clear();
            _emptyTicks.Clear();
            _emptySplits.Clear();
            _emptyDividends.Clear();
            _emptyDelistings.Clear();
            _emptyOptionChains.Clear();
            _emptyFuturesChains.Clear();
            _emptySymbolChangedEvents.Clear();

#pragma warning disable 0618 // DataDictionary.Time is deprecated, ignore until removed entirely
            _emptyTradeBars.Time
                              = _emptyQuoteBars.Time
                              = _emptyTicks.Time
                              = _emptySplits.Time
                              = _emptyDividends.Time
                              = _emptyDelistings.Time
                              = _emptyOptionChains.Time
                              = _emptyFuturesChains.Time
                              = _emptySymbolChangedEvents.Time = algorithmTime;
#pragma warning restore 0618
        }
Beispiel #2
0
        private void UpdateEmptyCollections(DateTime algorithmTime)
        {
            // just in case
            _emptyTradeBars.Clear();
            _emptyQuoteBars.Clear();
            _emptyTicks.Clear();
            _emptySplits.Clear();
            _emptyDividends.Clear();
            _emptyDelistings.Clear();
            _emptyOptionChains.Clear();
            _emptyFuturesChains.Clear();
            _emptySymbolChangedEvents.Clear();

            _emptyTradeBars.Time
                              = _emptyQuoteBars.Time
                              = _emptyTicks.Time
                              = _emptySplits.Time
                              = _emptyDividends.Time
                              = _emptyDelistings.Time
                              = _emptyOptionChains.Time
                              = _emptyFuturesChains.Time
                              = _emptySymbolChangedEvents.Time = algorithmTime;
        }