Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi-Instrument Strategy Development

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

    Multi-Instrument Strategy Development

    Hi,

    Is it possible in Ninja to develop a single strategy by accessing price action on two or more instruments?

    Is it possible to generate orders on multiple instruments based on the above strategy?

    For example, I would like to access the price and time and sales of 6E, 6B and 6C, analyze and generate orders to these instruments at the same time.

    I have developed strategy in Ninja by accessing price action on single instrument. I am not sure I could do for multiple instruments in a single strategy. If so, would you please point me to relevant documents or an example?

    Please advice and Thank you.

    SB

    #2
    Hello,

    Thank you for your forum post.

    Yes this is possible in NinjaScript. Please see the following reference sample and help guide documentation.

    Multi Time Frame and Series Instruments:


    Using Multiple Time Frames ( Same Concept as multi instruments)
    BrettNinjaTrader Product Management

    Comment


      #3
      Thank you Brett. I will look into the link.

      One more question. Is it possible to create a single chart with multiple instruments by combining the price? For example, I would like to combine 6E and 6B and create a single chart. Thank you.

      Comment


        #4
        Unfortunately this would not be possible.
        BrettNinjaTrader Product Management

        Comment


          #5
          Brett,

          I looked at the link. Is OnBarUpdate method called for every tick? I would like my logic to be executed for every tick on each instrument. Would this be possible? Thank you.

          Comment


            #6
            Yes, onBarUpdate is called for every tick as long as CalculateOnBarClose is set to false.

            CalculateOnBarClose:
            BrettNinjaTrader Product Management

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            68 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
            61 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