Hi,
I'm getting the above error when attempting to run Optimization through the Strategy Analyzer.
I've read in other posts that we'll have to hard-code values when adding DataSeries to a strategy/indicator. I'm adding the dataseries using the following code:
else if (State == State.Configure) { if (CalculationType==UniversalCalculationType.SMA || CalculationType==UniversalCalculationType.ATR) AddDataSeries(BarsPeriodType.Day, 1); }
Thank you.
Comment