How to know when Backtest is executing last bar

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #258355 quote
    PROPRO
    Participant
    New

    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

    #258361 quote
    robertogozzi
    Moderator
    Master

    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.


Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

How to know when Backtest is executing last bar


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
PROPRO @propro Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
1 hour, 55 minutes ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 02/20/2026
Status: Active
Attachments: No files
Logo Logo
Loading...