The issues are:
#1. NT is changing the Input Series to Close. When first adding it to the chart the Input Series is correct, set to the chart Data Series like any moving average indicator. There is no code referencing Input, so the code is not changing it. See attached video.
How can I prevent NT from changing the Input Series?
#2. I'm guess #1 has something to do when the errors that are now happening, that didn't happen before. Also, see video for error.
The code has checks for CurrentBar less than 0, so it appears NT is forcing a -1 currentbar through to OnBarUpdate().
How can I prevent OnBarUpdate() from executing a -1 Currentbar?
protected override void OnBarUpdate()
{
if(BarsInProgress == 0 || [B]CurrentBar < 0[/B]) return;
Print("BiP = "+BarsInProgress+" \t CurrentBar = "+CurrentBar.ToString().PadLeft(5));
if(CurrentBars[1] > 0 && [B]CurrentBar > 0[/B])
{
Values[0][0] = mtfMAData[0];
}
thanks.

Comment