protected override void OnBarUpdate()
{
// Calculate the range of the current bar and set the value
myDataSeries.Set(High[0] - Low[0]);
}
Does this only initialize the current bar, and leave all the remaining bars not initialized?
Shouldn't we use a for loop in Initialize() function to go through each historical bar and call DataSeries.Set(int barsAgo, double value)?
Comment