Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Instrument not found

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

    Instrument not found

    Hi, I'm trying to add several instruments in the Initialize() method by calling Add(). What I'm observing is that for some of them the following message appears in the log:
    9/21/2011 6:25:35 PM Strategy The strategy 'Ema13/c8e4129f7b844cdcbbcbebd207a920d3' has called the Add() method with an invalid instrument. Either 'NUVA' does not exist in the Instrument Manager or the specified exchange has not been configured.

    If I now go and open the chart with this same instrument, then again try to run the strategy - the error for this particular instrument disappears. So it looks like it can't load some instruments via Add(), but the same instruments are correctly resolved in the chart. Can you help me to fix it? If it matters in any way - I'm using an MB Trading account. Thanks.

    #2
    Hello kltdco,

    If you create a chart with a previously unknown equity, then it automatically adds this instrument "on the fly" to the instrument manager. It won't do this for unknown instruments through the Add() command though.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      So, I didn't get it... What should I do for me to be able to add this instrument to the strategy programmatically?

      Comment


        #4
        Originally posted by kltdco View Post
        So, I didn't get it... What should I do for me to be able to add this instrument to the strategy programmatically?
        Is NUVA in your instrument manager?

        Comment


          #5
          Looks like not... If it was there I guess I wouldn't have had a problem. The question is how to add it programmatically so that I could add a series for my strategy input.

          Comment


            #6
            Originally posted by kltdco View Post
            Looks like not... If it was there I guess I wouldn't have had a problem. The question is how to add it programmatically so that I could add a series for my strategy input.
            Like NT_ryan mentioned, Add won't do it. I don't think anything can.

            NinjaTrader_RyanM Hello kltdco,

            If you create a chart with a previously unknown equity, then it automatically adds this instrument "on the fly" to the instrument manager. It won't do this for unknown instruments through the Add() command though.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            649 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            370 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            109 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            573 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            576 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X