• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by dtl-saw, Yesterday, 08:44 PM
    0 responses
    13 views
    0 likes
    Last Post dtl-saw
    by dtl-saw
     
    Started by ballboy11, Yesterday, 04:29 PM
    0 responses
    13 views
    0 likes
    Last Post ballboy11  
    Started by zacharydw00, Yesterday, 02:29 PM
    2 responses
    30 views
    0 likes
    Last Post zacharydw00  
    Started by timcjpfx, Yesterday, 06:22 AM
    4 responses
    27 views
    0 likes
    Last Post timcjpfx  
    Started by welson, Yesterday, 08:26 AM
    2 responses
    18 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Working...
    X