As you can see from the screen shot, you apparently cannot call Bars.IsFirstBarOfSession because for some reason, that guy is out of scope... Or is it? You should probably make sure you're on the correct bar series you want but should it throw a null reference exception if you aren't? I don't see why.
This issue first became apparent on the Times object. The screen shot shows you that too - same crash - NullReferenceException.
Load the strategy on a range chart - I used 18 range, 3 days, CL 04-17 - in a market replay connection and it may crash for you, or it should because it crashes on me every time. I'm not ever crashing in a live connection environment, just MR. (Of course, I had it on a bar that was just right to expose the crash.)
You could have some trouble reproducing this. If you run through about three weeks of market replay and it doesn't do it to you, then you'll need to restart the MR, restart the strategy and run it. If it runs, then let it go a few bars and stop the MR, restart the strategy and sooner or later - hopefully sooner - you'll hopefully land on a bar that hasn't the foggiest clue about the Time object for the background data series.
Comment