Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Why is indicator ADX always called?

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

    Why is indicator ADX always called?

    The first line of the class definition in Strategy.cs is:

    private NinjaTrader.Indicator.ADX _indicator = new NinjaTrader.Indicator.ADX();

    I just discovered while debugging, that every time OnBarUpdate() is called in any strategy, ADX.OnBarUpdate() is also called. Does this serve any useful purpose, or is it just unnecessary computing overhead?

    #2
    rmt81,

    Yes, this is expected and is required for internal operation.
    MatthewNinjaTrader Product Management

    Comment


      #3
      Matthew:

      Can I replace it with an indicator like SMA that I will use anyway to reduce the overhead?

      Thanks


      Originally posted by NinjaTrader_Matthew View Post
      rmt81,

      Yes, this is expected and is required for internal operation.

      Comment


        #4
        rmt81,

        It is not recommended to make any modifications to these source files and any issues as a result cannot be supported.
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        637 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        366 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        569 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        571 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X