Beispiel #1
0
 public void Update(Tick tick)
 {
     if (this.Open == 0)
     {
         this.Open = tick.Price;
         this.High = tick.Price;
         this.Low = tick.Price;
         this.Last = tick.Price;
     }
 }
Beispiel #2
0
        public BarUnsettled(
            SpanType barSpan,
            DateTime timeStamp,
            Tick tick = null)
            : base()
        {
            _span = barSpan;
            var time = TrimFractions(timeStamp, barSpan);

            if (time == timeStamp)
            {
                Available = true;
            }
            TimeStamp = time;

            if (tick != null)
            {
                Update(tick);
            }

            StartTimer();
        }