Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AddDataSeries

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

    AddDataSeries

    Hi,

    I'm using:

    Code:
    AddDataSeries(null, new BarsPeriod { BarsPeriodType = BarsPeriodType.Minute, Value = 5 }, "CME US Index Futures ETH");
    How would the syntax be to add a bars object that has the same BarsPeriodType and Period as the primary data series?
    e.g. having a 15m data series added, if the indicator is loaded on a 15m chart

    Thanks
    Thomas
    Last edited by td_910; 10-18-2022, 02:23 PM.

    #2
    Hello td_910,

    Thanks for your post.

    There is no supported way to inherit the BarsPeriodType and Period from the primary data series that the script is running on.

    You would need to hardcode the added data series information you would want to use when calling AddDataSeries().

    AddDataSeries(): https://ninjatrader.com/support/help...dataseries.htm

    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
      That is great news

      One more feature request to put on the long list ...

      Comment


        #4
        Hello td_910,

        Thanks for your note.

        I have added a vote for you to a feature request that allows for the AddDataSeries() method to inherit the BarsPeriodType and Period from the primary data series. This request is being tracked under the number SFT-5639.

        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.​
        <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
          Can we add dataseries in strateggy builder? or do we haven an example of how strategy can work using two different time series? something more then info from docs?

          Comment


            #6
            Hello tkaboris,

            Thanks for your note.

            Additional data series are able to be added in a Strategy Builder strategy from the 'Additional Data screen'. For example, you could add a 1-Minute data series on this screen.

            See this help guide page about the Additional Data screen of the Strategy Builder: https://ninjatrader.com/support/help...onalDataScreen

            You could then get indicator or price information from the added data series. We do not have a reference sample demonstrating this.

            To get price data from an added series for a condition such as the close price of the added series, you could click the Price folder > Close > click 'Series 1' field > Data Series folder > select the added series > click OK.

            To get indicator data from an added series, such as the SMA value of the added series, open the Indicator folder > SMA > click the 'Input series' field > Data Series folder > select the added series > click OK.

            Note that you cannot submit orders to an added secondary series using the Strategy Builder. Submitting orders to an added secondary series would require unlocking the code from the Strategy Builder and manually programming your logic.

            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

            Latest Posts

            Collapse

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