When I try to call this indicator from within a strategy, I get the following error :
"A hosted indicator tried to load additional data. All data must first be loaded by the hosting NinjaScript in its configure state"
the DJIA in the indicator is loaded within Configure state; the error doesn't make sense to me.
else if (State == State.Configure)
{
AddDataSeries("^DJIA", Data.BarsPeriodType.Day, 1, Data.MarketDataType.Last);
}
What is this error mean ?
Comment