Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Accessing Nasdaq 100 Instrument List NinjaTrader 8 with C#

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

    Accessing Nasdaq 100 Instrument List NinjaTrader 8 with C#



    Dear NinjaTrader Support,

    I am writing to inquire about the proper way to access the list of instruments that comprise the Nasdaq 100 index within a custom indicator I am developing in C# for NinjaTrader 8.

    I understand that NinjaTrader provides a pre-defined list of instruments for the Nasdaq 100. I would like to know the recommended method for retrieving this list programmatically within my indicator code.

    Specifically, I am looking for a way to:
    1. Obtain a collection or array of Instrument objects that represent the current constituents of the Nasdaq 100.
    2. Iterate through this collection to access individual instrument properties such as symbol, name, and other relevant details.
    3. Use these Instrument objects to add data series to my indicator for each Nasdaq 100 component.

    I have attempted to use the InstrumentManager class, but I am encountering difficulties. Could you please provide a code example or guidance on how to correctly use InstrumentManager or any other appropriate method to achieve this?

    Thank you for your time and assistance.



    #2
    Hello HGTrader,

    You can do the first two tasks but the #3 is not possible, the method to add data cannot be used dynamically in that way. You would have to hard code the instruments you want to trade into the script. You are best off using AddDataSeries and then adding each instrument you want to trade hard coded so the method works correctly.

    Join the official NinjaScript Developer Community for comprehensive resources, documentation, and community support. Build custom indicators and automated strategies for the NinjaTrader platforms with our extensive guides and APIs.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    556 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X