18 using System.Collections.Generic;
33 private decimal? _priceFactorRatio;
34 private decimal _referencePrice;
62 _factorFileProvider = factorFileProvider;
63 _mapFile = mapFileProvider.ResolveMapFile(
Config);
78 if (_priceFactorRatio !=
null)
80 if (_referencePrice == 0)
82 throw new InvalidOperationException($
"Zero reference price for {Config.Symbol} dividend at {eventArgs.Date}");
89 _priceFactorRatio.Value
93 _priceFactorRatio =
null;
96 yield
return baseData;
100 decimal priceFactorRatio;
101 decimal referencePrice;
102 if (
FactorFile.HasDividendEventOnNextTradingDay(eventArgs.
Date, out priceFactorRatio, out referencePrice))
104 _priceFactorRatio = priceFactorRatio;
105 _referencePrice = referencePrice;