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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        663 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        376 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        110 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        575 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        580 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X