Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Spread Oder Entry

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

    Strategy Spread Oder Entry

    I'm trying to program a strategy which upon a certain trigger will buy one market and sell another at the same time. I'm having trouble entering the second order, I've looked at the MultiTimeFrameInstruments page but this hasn't answered my question.

    Thanks

    #2
    You will need to use NinjaTrader 6.5 currently in beta and available in this forum to be able to submit orders for multiple markets at the same time. In NT6, you are limited to doing this within the context of the market calling the OnBarUpdate() method.

    Please take a look at the Help Guide in NT 6.5 under the Orders section for Custom Strategies.
    RayNinjaTrader Customer Service

    Comment


      #3
      I still haven't been able to implement this correctly. I'm trying to buy stock futures and sell bond futures every time there is a buy signal for stocks. For some reason the trades do not match up, I should have the same number of buys and sells for each but this does not happen.

      Comment


        #4
        You need to add a second bar object through the use of the multi-instrument capabilities in the strategy. Then you will need to send your orders to the corresponding bars object.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        571 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        548 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        549 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X