DataSeries.Set(int barsAgo, double value)
You can also set the value for historical bars by including a "barsAgo" value that represents the number of bars ago that you want the double value to be stored at.
This could be an advantage if both crossing values needed to be based on bars ago values. Since it looks like only one of yours is, this wouldn't offer an advantage over just applying indexing to SMA to make it a double.

Comment