#region variables
private MovingAverageType _maType = MovingAverageType.HMA;
private SuperTrendMode _smode = SuperTrendMode.ATR;
#endregion
And the error lines in the strategy are:
...is a 'method', which is not valid in the given context. ...What does this mean and how do you fix it?
protectedoverridevoid Initialize()
{
Add(TSSuperTrend(14, TSSuperTrend.Utility.MovingAverageType.HMA, 2.618, 14, TSSuperTrend.Utility.SuperTrendMode.ATR));
CalculateOnBarClose = true;
}
The strategy was generated by the Wizard

Comment