For example ( within the OnStateChange() method ):
else if (State == State.Configure)
{
AddDataSeries(Instrument.FullName, new BarsPeriod { BarsPeriodType = BarsPeriodType.Range, Value = 1 }, "CME US Index Futures RTH");
When you run the attached strategy you will see the output window:
Strategy 'Sample multi-timeframe': Error on calling 'OnStateChange' method: Object reference not set to an instance of an object.
I checked in the VS debugger and verified there that it's the Instrument property of StrategyBase that is null.

Comment