Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calculating an indicator on a multi-time frame

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

    Calculating an indicator on a multi-time frame

    Hi, my primary timeframe is a minute bar on the stock and my secondary timeframe is the minute bar on another stock (DIA). Is there any way to calculate an indicator like ADX on the secondary timeframe?

    It looks like the answer is going to involve IDataSeries somehow, but I don't get how to associate a set of closing bar prices from one data series to an IDataSeries variable. Any help would be appreciated.

    #2
    egan857,

    Yes, your understanding is correct.

    Indicators usually have an overloaded method where you can call them and pass a data series to them

    For example : ADX(Closes[1], 14)[0] would be the ADX of the secondary series Close prices.

    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Oh! That's so much simpler than I thought it would be. It works great. Thanks!

      Comment


        #4
        egan,

        No problem. Please feel free to contact us or post in the forum any time. We monitor our forum as well as watch the support email.
        Adam P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        662 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        376 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        110 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        574 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        580 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X