Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

One Second multi-Instrument Strategy

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

    One Second multi-Instrument Strategy

    Hi,

    I'm designing a multi-instrument strategy with 1 second bars.
    Some of the instruments has missing second without bars.
    My question is does OnBarUpdate() is called even if BIP==0 has a missing second but other BIP has this second?

    Also I want to verify that if I'm referring to Closes[1][0] it refer to the last available Close in BIP 1 that is with the sync. with the time stamp so far.

    Thanks,
    Roy

    #2
    Hello freewind,

    Thank you for your post.

    BIP 0 will not be called if there is no data for the BIP 0, BIP is only called when there is a tick for that bar series.

    Closes[1][0] refers to the must recent close of the secondary bar series added to your code.

    For information on working with multiple instrument and time frames in your NinjaScript code please visit the following link: http://www.ninjatrader.com/support/h...nstruments.htm

    Please let me know if you have any questions.

    Comment


      #3
      Yes, But does OnBarUpdate() is called if BIP2 was updated and not BIP0?

      Comment


        #4
        Hello freewind,

        Thank you for your response.

        OnBarUpdate() is called for each bar series in your script.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X