public DateTime GetStartTime() { DateTime start = DateTime.MaxValue; if (SimulationData != null) { return(SimulationData[0].Time); } if (CaptureDataHistory != null) { start = MinTime(start, CaptureDataHistory.Items.First().Time); } if (CandleStickData != null) { start = MinTime(start, CandleStickData.First().Time); } return(start); }
public DateTime GetStartTime() { DateTime start = DateTime.MinValue; if (SimulationData != null) { return(SimulationData[0].Time); } if (CaptureDataHistory != null) { start = MaxTime(start, CaptureDataHistory.Items.First().Time); } if (CandleStickData != null) { start = MaxTime(start, CandleStickData.First().Time); } if (Trades != null && Trades.Count > 0) { start = MaxTime(start, Trades[0].Time); } return(start); }