Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 bmartz, 03-12-2024, 06:12 AM
            4 responses
            32 views
            0 likes
            Last Post bmartz
            by bmartz
             
            Started by Aviram Y, Today, 05:29 AM
            4 responses
            12 views
            0 likes
            Last Post Aviram Y  
            Started by algospoke, 04-17-2024, 06:40 PM
            3 responses
            28 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by gentlebenthebear, Today, 01:30 AM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by cls71, Today, 04:45 AM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X