示例#1
0
		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;
		}
示例#2
0
        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;
        }
示例#3
0
 public void Add(BarDataItem item)
 {
     this.list.Add(item);
 }
示例#4
0
		public void Add(BarDataItem item)
		{
			this.list.Add(item);
		}