Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Questions with different data series with different time frames

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

    Questions with different data series with different time frames

    Hi,

    I'm working with 3 data series (1', 5', 10') with an indicator.

    The primary data series could be another different time frame.

    I've read your post:


    but I think I cannot understand everything.....

    While using my indicator, when I'm drawing the plots, I'm on CurrentBars[0].
    In order to be sure the other BarsArray are complete loaded, when I'm drawing plots from data series 1, 2 & 3, I have to use the bar [1] instead the last bar [0].
    When doing tests, if I use for these other BarsArray the bar [0], sometimes the value I get is 0.
    Also it is even worse, because I'm using an EMA with the data from every BarsArray, so, I'm adding more delay....

    How should I do it?
    Do you have an example?
    If possible use please also an EMA with every data series....

    Thanks!

    #2
    Ok,

    I was working on it and I think I 've solved it.
    I was doing some calculations from secondary Data Series under primary serie (CurrentBars[0]).

    Thanks in any case!

    Comment


      #3
      Hello artson,

      Thanks for your post.

      If you are wanting to calculate values based on the added secondary series, you would need to specify the BarsInProgress or BarsArray value of that added series and create your calculations. Note that you could access prices from the added series by calling Closes[1][0], Opens[1][0], Highs[1][0], Lows[1][0], etc.

      Please review this help guide page for information about working with Multi-Timeframe/Multi-Instrument NinjaScripts: https://ninjatrader.com/support/help...nstruments.htm

      And see this help guide page: https://ninjatrader.com/support/help...riceseries.htm

      Let me know if you have further questions.
      Last edited by NinjaTrader_BrandonH; 10-10-2022, 07:38 AM.
      <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
      672 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      379 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      111 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      575 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      582 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X