However, when passed to another indicator, the value appears to be set to the Close of the primary instrument. This is undesirable behavior, because it means that you can't use another indicator on any indicator which uses Value.Reset(0).
Desired behavior is to pass an indication that the value doesn't exist (i.e., something like "NaN" or Input[0].ContainsValue). Or treat it like you would treat a missing bar for a price input: don't even have a place in the input series for a missing value, and don't call OnBarUpdate. A quick improvement would be to pass a value of 0, which for most indicators would produce a much more reasonable result than passing the Close.
How to reproduce:
Create a modified version of SMA called SMATest2.
In SMATest2, place the following lines as the first 2 lines in OnBarUpdate:
Value.Reset(0);
return;
In a chart, apply the indicator SMA, using SMATest2 as the Input Data Series.
SMA will plot the SMA of the close even though SMATest2 has produced no output.

Comment