Where is the mistake in this code?
else if (State == State.Configure)
{
AddDataSeries(Data.BarsPeriodType.Minute, 1);
}
}
protected override void OnBarUpdate()
{
if (BarsInProgress != 0)
return;
if (CurrentBars[0] < 0)
return;
// Set 1
if (Times[1][0].TimeOfDay == new TimeSpan(13, 59, 0))
{
BackBrushAll = Brushes.CornflowerBlue;
Print(@"signal");
}
}
Comment