I have a custom indicator. I would like to add an additional plot with it's own values, to the same indicator.
I do not understand how the Values[] are tied to the AddPlot() that I put into the OnStateChange method, state.defaults. I assumed that the compiler would read that AddPlot() and dimension the Values series accordingly, but it doesn't seem so.
I am unable to assign a value to Values[1][0]. I keep getting an error that the value I'm trying to access is "out of range." I have read the Values and AddPlot() instructions but still can't figure this out. Since adding the second plot was an afterthought, I really didn't want to have to go back through the wizard and start over.

Comment