Ejemplo n.º 1
0
 public TimeframeItem(Timeframes tf)
 {
     this.Tf = tf;
     string[] names = TfHelper.GetTimeframeNames(tf);
     this.ShortName = names[0];
     this.Name      = names[1];
 }
Ejemplo n.º 2
0
Archivo: Bar.cs Proyecto: vlshl/pulxer
        public Bar(DateTime time, Timeframes tf)
            : this()
        {
            var dates = TfHelper.GetDates(time, tf);

            this.Time        = dates[0];
            this.NextBarTime = dates[1];
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Add new time interval.
 /// </summary>
 /// <param name="date">Start time</param>
 /// <param name="tf">Timeframe</param>
 public void Add(DateTime date, Timeframes tf)
 {
     DateTime[] dts = TfHelper.GetDates(date, tf);
     _dates.Add(new BarDate(dts[0], dts[1]));
 }