protected void AddItemsToBar(PriceSizeItem[] items)
		{
			for (int i = 0; i < items.Length; i++)
			{
				PriceSizeItem item = items[i];
				this.AddItemToBar(item);
			}
		}
 protected void AddItemsToBar(PriceSizeItem[] items)
 {
     for (int i = 0; i < items.Length; i++)
     {
         PriceSizeItem item = items[i];
         this.AddItemToBar(item);
     }
 }
Example #3
0
		private void AddItemToBar(PriceSizeItem item)
		{
			if (item.Price < this.bar.Low)
				this.bar.bar.Low = item.Price;
			if (item.Price > this.bar.High)
				this.bar.bar.High = item.Price;
			this.bar.bar.Close = item.Price;
			this.bar.bar.Volume += item.Size;
		}
Example #4
0
 private void AddItemToBar(PriceSizeItem item)
 {
     if (item.Price < this.bar.Low)
     {
         this.bar.bar.Low = item.Price;
     }
     if (item.Price > this.bar.High)
     {
         this.bar.bar.High = item.Price;
     }
     this.bar.bar.Close   = item.Price;
     this.bar.bar.Volume += item.Size;
 }
Example #5
0
		public DataEntry(DateTime datetime, PriceSizeItem[] items)
		{
			this.DateTime = datetime;
			this.Items = items;
		}
Example #6
0
		protected void AddItemsToBar(PriceSizeItem[] items)
		{
			foreach (PriceSizeItem priceSizeItem in items)
				this.AddItemToBar(priceSizeItem);
		}