• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 Jschmelz, Today, 01:13 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_EricB  
    Started by Newtrader101, Today, 12:37 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_EricB  
    Started by Robert87, Yesterday, 11:07 AM
    1 response
    24 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by U0000999, Today, 12:20 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_EricB  
    Started by im197, Today, 02:54 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X