61 get {
return Left.IsReady &&
Right.IsReady; }
87 ConfigureEventHandlers();
98 : this($
"COMPOSE({left.Name},{right.Name})", left, right, composer)
123 return _composer.Invoke(
Left,
Right).Value;
130 private void ConfigureEventHandlers()
143 Left.Updated += (sender, updated) =>
145 newLeftData = updated;
148 if (newRightData !=
null || rightIsConstant)
158 Right.Updated += (sender, updated) =>
160 newRightData = updated;
163 if (newLeftData !=
null || leftIsConstant)
165 var dataPoint =
new IndicatorDataPoint { Time = MaxTime(updated) };
174 private DateTime MaxTime(IndicatorDataPoint updated)
176 return new DateTime(Math.Max(updated.Time.Ticks, Math.Max(
Right.Current.Time.Ticks,
Left.Current.Time.Ticks)));