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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        67 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        150 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        99 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X