As advised on these forums I'm using 1440 minute bars to get RTH Day bars.
However, if I add an RTH secondary data series to the indicator. All other Data series including the primary data series will not process Realtime updates unless the RTH session is in progress.
I've attached a simple indicator which adds 1440 min RTH and 1 Day ETH secondary data series, and prints updates from OnBarUpdate.
No realtime updates are made. I've set Update OnEachTick.
AddDataSeries(Instrument.FullName, new BarsPeriod() { BarsPeriodType = BarsPeriodType.Minute, Value = 1440 }, "CME US Index Futures RTH"); AddDataSeries(Instrument.FullName, new BarsPeriod() { BarsPeriodType = BarsPeriodType.Day, Value = 1 }, "CME US Index Futures ETH");
Output:
Historical BarsInProgress:0 CurrentBar:994 Historical BarsInProgress:0 CurrentBar:995 Historical BarsInProgress:0 CurrentBar:996 Historical BarsInProgress:0 CurrentBar:997 Historical BarsInProgress:0 CurrentBar:998 Historical BarsInProgress:0 CurrentBar:999 Historical BarsInProgress:2 CurrentBar:99 State Change:Transition State Change:Realtime
Comment