• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MACD.Diff for alternate Bar Series

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

    MACD.Diff for alternate Bar Series

    Morning,

    If I have 2 Bar Series (100 Tick and 50 Tick) how can I access the MACD.Diff for the primary bar series (100 Tick) when processing BarsInProgess for the secondary series?


    ie i want to do MACD(6,13,9).Diff[0][1]

    But there is no overload for this?

    #2
    GKonheiser, all indicators support the IDataSeries interface in one of their overloads so you can just pass the desired BarsArray in here.

    i.e. MACD(BarsArray[0], 6,13,9).Diff[0]
    BertrandNinjaTrader Customer Service

    Comment


      #3
      When CalculateOnBarClose is true bar index [0] is the bar that just closed, the most recent close, right?

      Comment


        #4
        Correct, the last closed bar for the respective series.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by lavalampmj, Today, 05:25 PM
        0 responses
        1 view
        0 likes
        Last Post lavalampmj  
        Started by Antares66, Today, 05:19 PM
        0 responses
        2 views
        0 likes
        Last Post Antares66  
        Started by jmneto, Today, 05:18 PM
        0 responses
        2 views
        0 likes
        Last Post jmneto
        by jmneto
         
        Started by Bobbyj78, Today, 02:21 PM
        2 responses
        12 views
        0 likes
        Last Post bltdavid  
        Started by EnveousColnago, Today, 02:10 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Ariana  
        Working...
        X