Example #1
0
        public IPriceItemFeed <TItem> Assign(TickerReference tickerReference, Action <TickerReference, TItem> priceAction)
        {
            var itemFeed = new PriceItemFeed <TickerReference, TItem>(tickerReference, priceAction);

            _item[tickerReference.Symbol.Id][tickerReference.Interval.UnitId] = itemFeed;
            return(itemFeed);
        }
Example #2
0
 protected override void Wireup(RenkoBars bars, PriceItemFeed <TickerReference, IRenkoBar> priceItemFeed)
 {
     bars.BarUpdated += priceItemFeed.PriceAction;
 }
Example #3
0
 protected abstract void Wireup(TBars bars, PriceItemFeed <TickerReference, TItem> priceItemFeed);