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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    152 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    87 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    131 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    127 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    106 views
    0 likes
    Last Post CarlTrading  
    Working...
    X