Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Programatically load or initialize a Stock instrument into the local NT Database

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

    Programatically load or initialize a Stock instrument into the local NT Database

    I developed a Ninjatrader AddOn that is a market scanner. Sometimes stocks are added to the scanner results that are not in the Ninjatrader database yet. When that happens, I cannot instantiate a Cbi.Instrument (Instrument instrument = Instrument.GetInstrument(symbol) since the symbol is not in the NT local database.

    Everything works fine with instruments that well known to NT. In other words, if you open a Chart for the missing Symbol, NT will initiate the database and going forward my scanner AddOn will now work for that instrument.

    The NT Chart code is certainly calling some function that Initializes the Instrument in the NT Database for the first time.

    How can I call the same function from my Add On? (Causing the Unknown instrument to be loaded in the local database)

    Thank you!

    #2
    Hello jmneto,

    Thank you for your post.

    There is no supported method to add instruments to the NinjaTrader database at this time. There may be an unsupported method to do this, however, I do not have information on one.

    However, I have added a vote for you to a current feature request to add instruments programmatically to the database. This request is being tracked under the number SFT-1849.

    As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

    Release Notes — https://ninjatrader.com/support/help...ease_notes.htm

    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    581 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    338 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
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    552 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X