protected void AddDataToBar(BarDataItem data) { if (data.Price > this.bar.High) this.bar.High = data.Price; if (data.Price < this.bar.Low) this.bar.Low = data.Price; this.bar.Close = data.Price; Bar bar1 = this.bar; long num1 = bar1.Volume + data.Volume; bar1.Volume = num1; Bar bar2 = this.bar; long num2 = bar2.OpenInt + data.OpenInt; bar2.OpenInt = num2; }
protected void AddDataToBar(BarDataItem data) { if (data.Price > this.bar.High) { this.bar.High = data.Price; } if (data.Price < this.bar.Low) { this.bar.Low = data.Price; } this.bar.Close = data.Price; Bar bar1 = this.bar; long num1 = bar1.Volume + data.Volume; bar1.Volume = num1; Bar bar2 = this.bar; long num2 = bar2.OpenInt + data.OpenInt; bar2.OpenInt = num2; }
public void Add(BarDataItem item) { this.list.Add(item); }