示例#1
0
		public TradeArray GetTradeArray(string series, DateTime datetime1, DateTime datetime2)
		{
			TradeArray trades = new TradeArray();
			if (this.file.Series[series] != null)
			{
				foreach (Trade trade in this.file.Series[series].GetArray(datetime1, datetime2))
					trades.Add(trade);
			}
			return trades;
		}
示例#2
0
		public TradeArray this[Instrument instrument]
		{
			get
			{
                TradeArray tradeArray = this.arrayList[instrument] as TradeArray;
				if (tradeArray == null)
				{
					tradeArray = new TradeArray();
					this.arrayList.Add(instrument, tradeArray);
				}
				return tradeArray;
			}
		}
示例#3
0
 public static TradeArray GetHistoricalTrades(IHistoricalDataProvider provider, Instrument instrument, DateTime datetime1, DateTime datetime2)
 {
     ArrayList arrayList = DataManager.r6ZT8iFUv(provider, instrument, DataManager.EDataSeries.Trade, datetime1, datetime2, -1L);
     TradeArray tradeArray = new TradeArray();
     foreach (Trade trade in arrayList)
         tradeArray.Add(trade);
     return tradeArray;
 }
示例#4
0
			public TradeSeriesEnumerator(TradeArray series)
			{
				this.series = series;
				this.enumerator = series.GetEnumerator();
			}
示例#5
0
		public TradeSeries()
		{
			this.series = new TradeArray();
		}
示例#6
0
		internal TradeSeries(TradeArray series)
		{
			this.series = series;
		}
示例#7
0
 public TradeArrayEventArgs(TradeArray array) : base()
 {
     this.TradeArray = array;
 }
示例#8
0
		public TradeArrayEventArgs(TradeArray array) : base()
		{
			this.TradeArray = array;
		}