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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        50 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        16 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        22 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X