I'm building a strategy with two instruments that are on different sessions. One is an stock and the other a future.
When I try to get session information on the second instrument it only gives me the session information the strategy was set to.
I'm using the following to set the session and retrieve the session information.
and
if (Bars.FirstBarOfSession && BarsInProgress == 1) { Bars.Session.GetNextBeginEnd(Times[1][0], out SecondaryInstrumentSessionBegin, out SecondaryInstrumentSessionEnd); }
Is there any way to get this to work?
Thanks!
Comment