I need to know in my ProBackTest code when Probacktest is executing the last bar i.e. the last Day/hour/mn defined in the calendar or Live. I didn’t find the solution. Any idea ?
Thanks
The instruction to know if teh code is runnuing live is IsLastBarUpdate (https://www.prorealcode.com/documentation/islastbarupdate/).
But it will not return true when you reach the last bar, just when the bar being evaluated is the most recent one, i.e. when it’s not a preloaded bar.