Time Category Message 11/14/2017 5:14:56 AM Default Strategy 'SlopeRegv2v8': Unable to load bars series. Your NinjaScript may be trying to use an additional data series dynamically in an unsupported manner.
Now, I'm trying to optimise the Int value for the data series. In other words, optimising the below (bolded):
{ AddDataSeries(Data.BarsPeriodType.Minute, [B]Speriod[/B]); AddDataSeries(Data.BarsPeriodType.Minute, [B]Lperiod[/B]); SetProfitTarget("", CalculationMode.Percent, PT); } else if (State == State.DataLoaded) { LinRegSlope1 = LinRegSlope(Closes[1], Convert.ToInt32(SlopeS)); LinRegSlope2 = LinRegSlope(Closes[2], Convert.ToInt32(SlopeL)); }
Thanks
Comment