void TestBars_NewBarEvent(object sender, BarEventArgs e) { Quote q = new Quote(); q.TimeStamp = TestBars.bars.Date[e.barIndex]; q.Ask = TestBars.bars.Close[e.barIndex]; q.Bid = TestBars.bars.Close[e.barIndex]; q.Open = TestBars.bars.Close[e.barIndex]; q.PreviousClose = TestBars.bars.Close[e.barIndex]; q.Price = TestBars.bars.Close[e.barIndex]; q.Size = 1; q.Symbol = "TestSymbol"; //Hearbeat(q.TimeStamp); // Why do I need this method? //UpdateMiniBar(q, q.Price, q.Price, q.Price); UpdateQuote(q); // What's wrong? }
void TestBars_NewBarEvent(object sender, BarEventArgs e) { Quote q = new Quote(); q.TimeStamp = TestBars.bars.Date[e.barIndex]; q.Ask = TestBars.bars.Close[e.barIndex]; q.Bid = TestBars.bars.Close[e.barIndex]; q.Open = TestBars.bars.Close[e.barIndex]; q.PreviousClose = TestBars.bars.Close[e.barIndex]; q.Price = TestBars.bars.Close[e.barIndex]; q.Size = 1; q.Symbol = "TestSymbol"; //Hearbeat(q.TimeStamp); // Why do I need this method? //UpdateMiniBar(q, q.Price, q.Price, q.Price); UpdateQuote(q); // What's wrong? }