Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Force Indicator To Be Non-Cached

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

    Force Indicator To Be Non-Cached

    I have an indicator that should never be cached by NinjaTrader (each instance should be unique). Is there an attribute that can be set or some other method to accomplish this? I can add a dummy input and always set it to something different, but it would be nice if there was a way to always guarantee this.

    #2
    Hello aslane,

    I'm not aware of anyway to prevent the backend of NinjaTrader from calling all necessary data for a script and then caching the data and the instance of the script. This is how NinjaTrader functions and partially is necessary for performance.

    The Update() method can be called if its needed to update something internally in the script before it is used in another script.
    https://ninjatrader.com/support/help...-us/update.htm

    However, each different strategy or chart adding the indicator will be adding a new instance. Below is a link to a forum post that describes the life cycle of a script.
    https://ninjatrader.com/support/foru...288#post726288
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by KarstenKafl, Today, 09:31 AM
    0 responses
    2 views
    0 likes
    Last Post KarstenKafl  
    Started by Walter2011, Today, 08:27 AM
    2 responses
    7 views
    0 likes
    Last Post Walter2011  
    Started by arangocj, Today, 06:28 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by BIllblast, Today, 08:03 AM
    4 responses
    18 views
    0 likes
    Last Post BIllblast  
    Started by jerryblack, Yesterday, 05:04 PM
    3 responses
    17 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Working...
    X