30 private readonly
bool _dailyStrictEndTimeEnabled;
31 private readonly
bool _extendedMarketHours;
32 private bool _useStrictEndTime;
84 _dailyStrictEndTimeEnabled = dailyStrictEndTimeEnabled;
85 Period = resolution.ToTimeSpan();
86 _extendedMarketHours = extendedMarketHours;
88 if (dataType == typeof(
Tick))
103 else if (dataType == typeof(
TradeBar))
109 else if (dataType == typeof(
QuoteBar))
117 throw new ArgumentNullException(nameof(dataType), $
"{dataType.Name} not supported");
138 if (_extendedMarketHours ||
150 public void Scan(DateTime currentLocalTime)
169 _useStrictEndTime =
false;
184 ExchangeHours = marketHoursDatabase.GetExchangeHours(symbol.ID.Market, symbol, symbol.SecurityType);
185 DataTimeZone = marketHoursDatabase.GetDataTimeZone(symbol.ID.Market, symbol, symbol.SecurityType);
196 if (!_useStrictEndTime)