protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
LastVisibleBar = ChartBars.ToIndex;
if (LastVisibleBar < 200)
{
System.Threading.Thread.Sleep(1000);
ChartControl.Dispatcher.InvokeAsync((Action)(() =>
{
ChartControl.OwnerChart.Focus();
}));
System.Windows.Forms.SendKeys.SendWait("{RIGHT}");
}
}

Comment