- ago
Is there any class or method to Compress and/or Synchronize DateSynchedList<T> like TimeSeries ?
0
441
Solved
1 Replies

Reply

Bookmark

Sort
Cone8
 ( 4.98% )
- ago
#1
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);          }
0
Best Answer

Reply

Bookmark

Sort