Is there any class or method to Compress and/or Synchronize DateSynchedList<T> like TimeSeries ?
Rename
There isn't anything to synch really. Doesn't this work for you?
CODE:
public override void Initialize(BarHistory bars) { // base timeframe List<DateTime> dateTimes = new List<DateTime>(); dateTimes.AddRange(bars.DateTimes); WriteToDebugLog(dateTimes.Count); // compressed timeframe dateTimes.Clear(); BarHistory cbars = BarHistoryCompressor.ToWeekly(bars); dateTimes.AddRange(cbars.DateTimes); WriteToDebugLog(dateTimes.Count); }
Your Response
Post
Edit Post
Login is required