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 CaptainJack, 05-29-2026, 05:09 AM
            0 responses
            51 views
            0 likes
            Last Post CaptainJack  
            Started by CaptainJack, 05-29-2026, 12:02 AM
            0 responses
            31 views
            0 likes
            Last Post CaptainJack  
            Started by charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            99 views
            0 likes
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            177 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            170 views
            0 likes
            Last Post CarlTrading  
            Working...
            X