I am new in ninjatrader and I want to create a new indicator just to practice. I am using NT7. After the automatic generation of the source code through the wizard, I have modified the "OnBarUpdate" function as follow.
protected override void OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
Plot0.Set(Close[1]);
}
Unfortunately I don't get any plot on my chart. But if I write "Close[0]" instead of "Close[1]" the plot is shown properly.
Does anyone have an idea what the problem is?
Thanks in advance.
Francisse
Comment