Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi-Series Secondary Series LastBarPainted

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Multi-Series Secondary Series LastBarPainted

    How do I best determine when the last bar is reached in a multi timeframe indicator.

    Lets say the primary series is a 5 minute chart and the secondary series is a 1 minute chart. On the 5 minute (primary series) I can use LastBarPainted to trigger an action such as writing data to a file.

    What is the equivalent for the secondary series? If nothing available what is a workaround?

    Thanks

    #2
    TAJTrades, LastBarPainted is an unsupported property.

    You could check PercentComplete in the secondary series BarsInProgress index to see how far along the bar is.

    Code:
    OnBarUpdate()
    {
       if (BarsInProgress == 1)
       {
          double howFar = Bars.PercentComplete;
       }
    }
    It might also be possible to use BarsArray[1].PercentComplete not in the BIP = 1 check.
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    125 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    105 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    84 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    104 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    83 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X