Im trying to track and trace a 'potential' issue in my own custom indicator.
I use a custom bar type which is similar to the range bar type :
I enable tick replay for the chart
i have a mixture of charts minute pnfigure and my custom bar type
all of which have Break EOD enabled
I have a section of code which for resetting some calculations uses the
Bars.IsFirstBarOfSession and IsFirstTickOfBar property checks.
In theory and in practice the firstbarofsession will indeed be the first bar in the new session if break EOD is enabled to true. In the case of break EOD disabled to false - would the firstbarofsession be the next bar after the bar which spans over the previous session and into the current session or would it be the bar that spanned the sessions ie include the bar data that initiated in the prior session?
the reason i ask is i want to eliminate this as a potential source of the issue.
given that i have consistently applied the break eod to be enabled ie true i am not anticipating issues with this but i wanted to check ... which if any combinations of break at eod and certain bar types could trigger issues with
Bars.IsFirstBarOfSession and IsFirstTickOfBar property checks.
thanks
Comment