I am trying to use Bollinger Bands for my custom made MA. However, I get an error saying the 'Values[0]' does not exist in the current context. I have defined them in properties as per the Indicator code of Bollinger Bands :
[Browsable(false)]
[XmlIgnore()]
public DataSeries Lower
{
get { return Values[0]; }
}
/// <summary>
/// Get the upper value.
/// </summary>
[Browsable(false)]
[XmlIgnore()]
public DataSeries Upper
{
get { return Values[0]; }
}
Can you please tell me why I am getting this error for Values[0] ?
Thanks,
Neo
Comment