AddDataSeries
( Names_Price[k],
new BarsPeriod() {BarsPeriodType = BarsPeriodType.Second, Value = LengthSamplingPeriod},
SessionString
);
The problem is that although the value of SessionString is "US Equities ETH", the actual trading hours property of the secondary series that is created by the method is "US Equities RTH".
I am printing out that property as BarsArray[1].TradingHours.ToString().
The method above is executed within a loop. Names_Price[k] is a valid Instrument FullName from an array of symbols. This method DID work correctly until a few releases ago, not sure when this problem started.
I did check to make sure that both of these templates, ETH and RTH, actually exist and are correctly named in my local installation of Ninjatrader 8. And I updated the Trading Hours templates using the Database Management tool.
I am subsequently instantiating an indicator that runs off of the secondary data series created per above. The SessionIterator object in that indicator doesn't seem to be working correctly.
Comment