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 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
        60 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