Setup....
-- Standard Ninja Chart using YM 03-16 RTH ....
-- ChartBars are 90 second bars
-- DaysToLoad = 5
-- (secondary dataseries in the code is 60 seconds...)
-- DataFeed is standard NinjaBroker
The code prints on Bar 0 and at the beginning of every session....
Results.....
with the datafeed DISCONNECTED....the code can not find the very last BarsArray[1].IsFirstBarOfSession.
When I connect the datafeed....the code now finds the very last BarsArray[1].IsFirstBarofSession
This seems to create a possible issue if my user disconnects midday, and then goes back in the evening to look at charts with datafeed disconnected, any code expecting to find BarsArray[1].IsFirstBarofSession will not have triggered.
NOTE: If I have "Tick Replay" checked, this problem does not seem to appear. In that instance the BarsArray[1] does seem to be able to find the IsFirstBarofSession on the very last session.
Comment