I have a simple indicator :
protected override void OnBarUpdate()
{
if (CurrentBar < 1) Return;
Indicator.Set(Close[0]);
Print(Close[0]);
}
The print starts at bar 1, which I expect to do, but the indicator starts plotting only at bar 20 on the chart.
How can I have the indicator starting at bar 1?
Comment