17 using System.Collections.Generic;
50 DateTimeZone timeZone,
54 volatilityModel.WarmUp(
60 dataNormalizationMode,
84 DateTimeZone timeZone,
90 volatilityModel.WarmUp(
96 dataNormalizationMode,
118 volatilityModel.WarmUp(
127 dataNormalizationMode);
130 private static void WarmUp(
135 DateTimeZone timeZone,
138 Func<IEnumerable<HistoryRequest>> getHistoryRequirementsFunc)
140 if (historyProvider ==
null || security ==
null || volatilityModel ==
VolatilityModel.
Null)
148 var baseTypeModel = volatilityModel as BaseVolatilityModel;
153 var historyRequests = getHistoryRequirementsFunc().ToList();
154 if (liveMode || (dataNormalizationMode.HasValue && dataNormalizationMode ==
DataNormalizationMode.Raw))
158 foreach (var request
in historyRequests)
164 var history = historyProvider.
GetHistory(historyRequests, timeZone);
165 foreach (var slice
in history)
167 foreach (var request
in historyRequests)
169 if (slice.TryGet(request.DataType, security.
Symbol, out var data))
171 volatilityModel.
Update(security, data);