public void OnApplyIncrementalUpdate()
 {
     HighestBid = OrderBook.Bids[0].Value;
     LowestAsk  = OrderBook.Asks[0].Value;
     Time       = DateTime.UtcNow;
     UpdateHistoryItem();
     CandleStickChartHelper.AddCandleStickData(CandleStickData, History.Last(), CandleStickPeriodMin * 60);
 }
Example #2
0
 private void Ticker_HistoryItemAdd(object sender, EventArgs e)
 {
     CandleStickChartHelper.AddCandleStickData(Ticker.CandleStickData, Ticker.History[Ticker.History.Count - 1], Ticker.CandleStickPeriodMin * 60);
     if (IsHandleCreated)
     {
         BeginInvoke(new MethodInvoker(this.chartControl1.RefreshData));
     }
 }