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));
}
eriod) because during optimisation, I could simply optimise the dataseries using strategy analyser. But when I compared the optimised trades based on the two different strategies, I was receiving conflicting trade signals, in other words, there were times where long and short positions were both live. I want to avoid that, therefore, I thought I'd be able to combine both individual long/short generating strategies into one single strategy and optimise the dataseries for individual long/short periods within the same strategy. But the above error..Thanks

Comment