When I start the strategy, The strategy shuts itself off during startup. I get the following error.
2023-08-22 10:45:04:063 ERROR: 'RJayTradingSystemDivergenceCyclesMTFS' tried to load additional data.
All data must first be loaded by the hosting NinjaScript in its configure state.
Attempted to load ES SEP23 Globex: RJay's RenkoSpectrum 2.0 Bars 6 - 1
Strategy Code being used is as follows:
public class DivergenceCyclesStrategy08092023 : Strategy
{
private RJayTradingSystemDivergenceCyclesMTFS RJayTradingSystemDivergenceCyclesMTF_Data;
if (State == State.DataLoaded)
{
RJayTradingSystemDivergenceCyclesMTF_Data = RJayTradingSystemDivergenceCyclesMTFS(Close, 14);
// RJayTradingSystemDivergenceCyclesMTF_Data.Plots[0].Brush = Brushes.Black;
// RJayTradingSystemDivergenceCyclesMTF_Data.Plots[1].Brush = Brushes.Transparent;
// RJayTradingSystemDivergenceCyclesMTF_Data.Plots[2].Brush = Brushes.Transparent;
AddChartIndicator(RJayTradingSystemDivergenceCycle sMTF_Data);
}
}
How do I get the data for the second bars in progress to load from the strategy?
How do I clear this error?
Do you have any code snippets I can look at?

Comment