51 : base(maxCount, period)
73 var open = GetNamedPropertyOrValueProperty(data,
"Open");
74 var high = GetNamedPropertyOrValueProperty(data,
"High");
75 var low = GetNamedPropertyOrValueProperty(data,
"Low");
76 var close = GetNamedPropertyOrValueProperty(data,
"Close");
80 ? data.
GetProperty(
"Volume").ConvertInvariant<
long>()
83 if (workingBar ==
null)
88 Time = GetRoundedBarTime(data),
99 workingBar.Close = close;
100 workingBar.Volume += volume;
101 if (low < workingBar.Low) workingBar.Low = low;
102 if (high > workingBar.High) workingBar.High = high;
106 private static decimal GetNamedPropertyOrValueProperty(
DynamicData data,
string propertyName)
112 return data.
GetProperty(propertyName).ConvertInvariant<decimal>();