myVariable = new Series<double>(this);
In OnBarUpdate(), I set myVariable[0] to custom logic.
I want to calculate the SMA of it and I'm trying to do that with this, also defined in state.SetDefaults:
mySMA = SMA(myVariable, length);:
But I'm getting the SMA of the close price, not the SMA of myVariable.
I would greatly appreciate any help with this.
Thanks!
Norman

Comment