Exemple #1
0
        internal BarSlice GetBarSlice(long barSize)
        {
            BarSlice barSlice = null;

            this.data.TryGetValue(barSize, out barSlice);
            return(barSlice);
        }
Exemple #2
0
		internal void Add(Instrument instrument, Bar bar)
		{
			BarSlice barSlice = null;
			if (!this.data.TryGetValue(bar.Size, out barSlice))
			{
				barSlice = new BarSlice(this.InstrumentsCount);
				this.data.Add(bar.Size, barSlice);
			}
			barSlice.Add(instrument, bar);
		}
Exemple #3
0
        internal void Add(Instrument instrument, Bar bar)
        {
            BarSlice barSlice = null;

            if (!this.data.TryGetValue(bar.Size, out barSlice))
            {
                barSlice = new BarSlice(this.InstrumentsCount);
                this.data.Add(bar.Size, barSlice);
            }
            barSlice.Add(instrument, bar);
        }
Exemple #4
0
        internal void xuVn4XYwX(long obj0)
        {
            if (!this.isActive)
            {
                return;
            }
            if (Trace.IsLevelEnabled(TraceLevel.Verbose))
            {
                Trace.WriteLine(string.Format("dfdfd", (object)this.Name, (object)obj0));
            }
            BarSlice barSlice = this.barSliceManager.GetBarSlice(obj0);

            if (barSlice == null)
            {
                return;
            }
            foreach (KeyValuePair <Instrument, Bar> keyValuePair in barSlice.Table)
            {
                this.OnNewBar(keyValuePair.Key, keyValuePair.Value);
            }
            this.OnNewBarSlice(obj0);
            barSlice.Clear();
        }