private void DataManager_RealTimeNewBarAdded(object sender, RTNewBarEventArgs e) { for (int i = 0; i < chartFormList.Count; i++) { var chart = chartFormList[i]; if (chart.Instrument.Name == e.Instrument.Name && (chart.Resolution.TimeFrame == e.Resolution.TimeFrame && chart.Resolution.Size == e.Resolution.Size)) { chart.AddBar(e.Bar); } } }
private static void Dm_RealTimeNewBarAdded(object sender, RTNewBarEventArgs e) { //Console.WriteLine($"New Bar: {e.Instrument.Name} -- {e.Resolution} -- {e.Bar.Open} --- {e.Bar.DateTime}"); }