I'm developing a very simple indicator that plots a line 50 points below the closing of each day.
Here's my OnBarUpdate method
protected override void OnBarUpdate()
{
if (CurrentBar > 1) {
Value[0] = Close[0] - 50.0;
}
}
As showed in the attached image, the line is not plot for the first 20 bars of each chart, am I doing something wrong?
TIA
--
andrea
Comment