52 : base(maxCount, period)
85 if (workingBar ==
null)
90 if (Consolidated !=
null)
93 var previous = Consolidated as
QuoteBar;
94 workingBar.
Update(0, previous.Bid?.Close ?? 0, previous.Ask?.Close ?? 0, 0, previous.LastBidSize, previous.LastAskSize);
101 workingBar.Period += data.
Period;
108 if (workingBar.Bid ==
null)
110 workingBar.Bid =
new Bar(bid.Open, bid.High, bid.Low, bid.Close);
114 workingBar.Bid.Close = bid.Close;
115 if (workingBar.Bid.High < bid.High) workingBar.Bid.High = bid.High;
116 if (workingBar.Bid.Low > bid.Low) workingBar.Bid.Low = bid.Low;
122 if (workingBar.Ask ==
null)
124 workingBar.Ask =
new Bar(ask.Open, ask.High, ask.Low, ask.Close);
128 workingBar.Ask.Close = ask.Close;
129 if (workingBar.Ask.High < ask.High) workingBar.Ask.High = ask.High;
130 if (workingBar.Ask.Low > ask.Low) workingBar.Ask.Low = ask.Low;
134 workingBar.Value = data.
Value;