Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is it possible to know that a bar is not available???

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

    Is it possible to know that a bar is not available???

    I am developing a kind of correlation indicator and my precondition is that bar times of all involved instruments will be at the same time. It may happen that during let's say last 5 minutes no data was broadcasted for a particular instrument and I don't see any data on a chart. Is it possible to distingush programmatically that a current bar is empty? Does anything like an “empty bar” exist in the framework?

    I looked at the documentation and I saw that "ContainsValue" method is not available for BarsArray.
    Is "IsValidPlot" a proper way to check whether a value exists for an instrument at given time ?

    After looking more, I found a thread http://www.ninjatrader.com/support/f...ad.php?t=41442
    It's cumbersome. Have you any built in function to check a valid bar data since then ?
    Last edited by xTrader1; 09-02-2013, 07:38 AM.

    #2
    xTrader1, in our event based frame work and empty bar could not exist technically - if you don't get an update / trade to close a bar it would stay open unless a new trade outside the last bar's timestamp range would be seen. For ideas how to sync multiple series in those scenarios I would suggest to check into work already done on this topic and offered in our sharing - http://www.ninjatrader.com/support/f...elation&desc=1

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    648 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    574 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X