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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X