Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Double Calculation of Indicators

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

    Double Calculation of Indicators

    Attached are two Indicators: TestCentral and TestPricePanel referencing TestCentral

    If I attach TestCentral to a new panel and TestPricePanel to the price panel and look at the output window, I realize, that two instances of TestCentral are created and maintained. As the parameters are exactly the same in both cases, one instance would be sufficient.
    Attached Files

    #2
    Adding them twice will print twice. This is accurate.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      In the output window you see Init's and Update's for two instances of TestCentral and one instance of TestPricePanel. As the parameters of both TestCentral instances are the same, one instance would be sufficient.

      Comment


        #4
        WolliWilli,

        Development has confirmed that the caching is not a global one. Meaning, since you are hosting it from an indicator it will be cached within that scope.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Will this change in NinjaTrader 7.0?

          Comment


            #6
            No. This is expected behavior.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            155 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            90 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            137 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            130 views
            1 like
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            107 views
            0 likes
            Last Post CarlTrading  
            Working...
            X