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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            67 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
            59 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