Exemplo n.º 1
0
        public IPriceOptionFeed <TOption, double> Assign(TickerReference tickerReference, TOption priceOption, Action <TickerReference, long, TOption, double> priceAction)
        {
            var optionFeed = new PriceOptionFeed <TickerReference, TOption, double>(tickerReference, priceOption, priceAction);

            _option[tickerReference.Symbol.Id][tickerReference.Interval.UnitId] = optionFeed;
            return(optionFeed);
        }
Exemplo n.º 2
0
 protected override void Wireup(RenkoBars bars, PriceOptionFeed <TickerReference, RenkoPriceOption, double> priceOptionFeed)
 {
     bars.PriceUpdated += priceOptionFeed.PriceAction;
 }
Exemplo n.º 3
0
 protected abstract void Wireup(TBars bars, PriceOptionFeed <TickerReference, TOption, double> priceOptionFeed);
Exemplo n.º 4
0
 protected override void Wireup(HeikenAshiBars bars, PriceOptionFeed <TickerReference, HeikenAshiPriceOption, double> priceOptionFeed)
 {
     bars.PriceUpdated += priceOptionFeed.PriceAction;
 }
Exemplo n.º 5
0
 protected override void Wireup(CandlestickBars bars, PriceOptionFeed <TickerReference, CandlestickPriceOption, double> priceOptionFeed)
 {
     bars.PriceUpdated += priceOptionFeed.PriceAction;
 }