I am trying to call a filter to my strategy, the indicator is AuGassianFilter which is a trend filter. I placed this code in State == State.DataLoaded but is giving me the Cannot assign to xxx because it is a Method Group error: CS1656, how can I fix this error?
}
else if (State == State.Configure)
{
upperBand = new Series<double>(this, MaximumBarsLookBack.TwoHundredFiftySix);
lowerBand = new Series<double>(this, MaximumBarsLookBack.TwoHundredFiftySix);
macd = MACD( MacdFastPeriod, MacdSlowPeriod, MacdBandPeriod);
sd = StdDev( macd, MacdBandPeriod);
// Add time period for accurate times
AddDataSeries(Data.BarsPeriodType.Second, 1);
}
else if (State == State.DataLoaded)
{
AuGaussianFilter = AuGaussianFilter(3, 20);
}
}
Comment