Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

"Read" instrument list?

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

    "Read" instrument list?

    Can I read an "instrument list"? I want to "Add" time frames in an indicator using an instrument list a user has defined .

    or can I "Add" an instrument list like a would on a normal instrument using the ADDDATASERIES?? I doubt it but thought I would at least ask. I can dream.

    Cheers
    Cliff
    Last edited by ct; 01-29-2023, 01:55 PM.

    #2
    Hello Cliff,

    Thanks for your post.

    The AddDataSeries() method could be used to add additional timeframes/instruments to your script. The instrument parameter used for AddDataSeries() must be hard-coded and cannot be dynamic. Dynamic includes user-defined properties.

    This is noted on the AddDataSeries() help guide page: Arguments supplied to AddDataSeries() should be hardcoded and NOT dependent on run-time variables which cannot be reliably obtained during State.Configure (e.g., Instrument, Bars, or user input). Attempting to add a data series dynamically is NOT guaranteed or supported and therefore should be avoided.

    AddDataSeries(): https://ninjatrader.com/support/help...dataseries.htm
    Working with Multi-Timeframe/Multi-Instrument NinjaScripts: https://ninjatrader.com/support/help...nstruments.htm

    Please let me know if I may assist further.​
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Brandon H.​

      Understood on the AddDataSeries. I assume i can't read or get the data for an instrument list as well.

      Cheers

      Comment


        #4
        Hello ct,

        Thanks for your note.

        Are you referring to calling AddDataSeries() and passing in an Instrument List into the method?

        If that is what you are referring to then no this would not be supported as it would be considered dynamically loading additional data series. AddDataSeries() would need to be called for each instrument you want to load additional data for and the instrument parameter would need to be hard-coded into the AddDataSeries() method.

        We have an existing feature request for tracking interest in the ability for dynamic handling/loading of additional data series when using AddDataSeries() and I have added your vote. This request is being tracked under the number SFT-882.

        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 me know if I may assist further.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5
          Brandon

          Thank you for adding me to the request list for that enhancement.

          Cheers

          Comment

          Latest Posts

          Collapse

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