I generated a new indicator because I needed more plot lines for various purposes.
One of my plots was named "CustomOne" because I figured I could just change the name later when I needed to, right?
Well, if you go into the section that has them defined and do that, first -- the change doesn't show up until you close ninjatrader and re-open it, and second, once you do and try to use your fancy new plot name, it will just shrug its shoulders and say "name does not exist in this context" or some irritating thing like that. (You also have to change the name in the AddPlot function call, which is what I did.)
How to solve?
Well, you have to index this thing.
If your plot value was say, 4, then to access it and set its value you need to use a statement like:
Values[4][0] = 0;
MyNewPlotName[0] = 0;
Comment