Code: Select all
this.Bars.LastBarInSession
I need this because the way MaxBarsBack works, I wish to retroactively do calculations in the StartCalc() method, and my calculations need to know where the session breaks are.
The "easy" way is to look at the changes in date (this.Bars.Time[x]), but that won't work with if a session spans across midnight.