How to know when Backtest is executing last bar

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

    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 robertogozzirobertogozzi
6 months, 4 weeks ago.

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