FastQuant.BarFactory.Remove C# (CSharp) Method

Remove() public method

public Remove ( BarFactoryItem item ) : void
item BarFactoryItem
return void
        public void Remove(BarFactoryItem item)
        {
            var list = ItemLists[item.Instrument.Id];
            if (list == null)
                return;

            var found =
                list.Find(x => x.barType == item.barType && x.barSize == item.barSize && x.barInput == item.barInput);
            if (found != null)
                list.Remove(found);
            else
                Console.WriteLine($"{DateTime.Now} BarFactory::Remove Item '{item}' is already removed");
        }

Same methods

BarFactory::Remove ( Instrument instrument, BarType barType, long barSize, BarInput barInput = BarInput.Trade, ClockType type = ClockType.Local ) : void