Example #1
0
        /// <summary>
        /// Настройка бара, определяет:
        /// Код инструмента
        /// Тип бара
        /// Интервал
        /// в секундах - для времеонного интервала
        /// в единицах - для volume или range бара
        /// </summary>
        //public BarSettings BarSettings { get; private set; }

        //public Bar LastBar { get; private set; }

        public BarBuilderRangeBar(BarSettings barSettings)
            : base(barSettings)
        {
            //this.BarSettings = barSettings;
            //LastBar = new Bar();
            //LastBar.DateTime = DateTime.MinValue;
        }
Example #2
0
 public BarBuilderTimeBar(BarSettings barSettings)
     : base(barSettings)
 {
     TimeSpanInterval = new TimeSpan(0, 0, barSettings.Interval);
     //this.BarSettings = barSettings;
     //LastBar = new Bar();
     //LastBar.DateTime = DateTime.MinValue;
     BarList = NewBarList(DateTime.Now);
 }
Example #3
0
 public BarBuilder(BarSettings barSettings)
 {
     this.BarSettings = barSettings;
     LastBar          = new Bar();
     LastBar.DateTime = DateTime.MinValue;
 }