In my strategy, I tried to add a second data series, and the strategy returned an error: "Error on calling 'OnStateChange' method: Object reference not set to an instance of an object."
Please advise what did I do wrong? Is it because my second data series time period is larger than the primary? My chart has only the primary data series displayed.
else if (State == State.Configure)
{
AddDataSeries(Data.BarsPeriodType.Tick, 1);
// Add daily VIX data series
AddDataSeries("^VIX", BarsPeriodType.Minute, 1);
}
Best,
Billy

Comment