What is the best way to detect whenever that indicator has value? Following function based on IsNan does not work.
Dummy customIndicator = Dummy(); if (Double.IsNaN(customIndicator.dataSeriesProperty[1]) && !Double.IsNaN(customIndicator.dataSeriesProperty[0]) )
namespace NinjaTrader.Indicator
{
public class Dummy : Indicator
{ ...
[XmlIgnore]
[Browsable(false)]
public DataSeries dataSeriesProperty
{
get
{
....
}
}
.....
}
}

Comment