Example #1
0
        private void Construct(int begin, int end, IList <KeyValuePair <Key, double> > data)
        {
            int middle = (begin + end) / 2;

            FirstChild  = new BarEx <Key>(begin, middle, data);
            SecondChild = new BarEx <Key>(middle, end, data);
            From        = FirstChild.From;
            Open        = FirstChild.Open;

            To    = SecondChild.To;
            Close = SecondChild.Close;

            Minimum = Math.Min(FirstChild.Minimum, SecondChild.Minimum);
            Maximum = Math.Max(FirstChild.Maximum, SecondChild.Maximum);
        }
Example #2
0
 public UnilateralTickCollection(IList <KeyValuePair <Key, double> > ticks)
 {
     m_root = new BarEx <Key>(0, ticks.Count, ticks);
     m_last = ticks.Last();
 }