Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Entering trade on instrument not in Strategy

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

    Entering trade on instrument not in Strategy

    Hi,

    Apologies if this has been asked before but is there any possible way of entering a trade on an instrument that hasn't been added in Initialize() ?

    #2
    spinalwiz,

    Not from strategy code. If you wanted to start doing fancy things I suggest you take a look at Unmanaged orders and work with that. Keep in mind that you would literally keep track of everything through your code yourself if you use Unmanaged. All convenience layers for order management are stripped away and there are no rules as to what you can/cannot do with your orders.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Do you think its totally unfeasible to load a list of several thousand symbols in a strategy's Initialize(). I would not need access to any historical data (and would be connected through google adaptor so indeed there would be no live data either).


      Any point even trying this?

      Comment


        #4
        spinalwiz,

        Each time you add a symbol through Initialize() it will load historical data. You are opening thousands of data streams and this will be taxing on the system. Not sure why you would need to do this though?
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Just to avoid having to use unmanaged ordering. Basically I am analysing some external data across a large number of symbols so I wont know in advance which instruments need loading

          Comment


            #6
            Unfortunately using Add() will add historical data for all of them and that will be very taxing.
            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
            597 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            343 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            556 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            555 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X