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

Indicator instance running even when not used.

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

    Indicator instance running even when not used.

    Hello,

    I know it's not supported but it's very important for me.

    Debugging my code I payed attention that an instance of any compiled indicator is running, even if not used anywhere by my code.

    It seems that Ninja framework creates at least one instance of all compiled indicators even if not activated implicitly and this instance is running always.

    Does any way exist to avoid this scenario ?

    If not , is it possible to distinguish between the zombie and the "real" instance invoked by my code ?

    ============

    Sorry, my fault. the"zombie" instance of an indicator is running, because it was activated in another workspace which is opened , but not used currently.
    Makes sense.
    Last edited by xTrader1; 06-13-2013, 08:33 AM. Reason: My fault...

    #2
    Hello xTrader1,

    Yes, your understanding of that is correct and there would not be a way to way to disable this or to tell if your Indicator was actually being used on a chart or not.

    If you would like to only run something when your Indicator is first being ran then you may want to place this logic into the OnStartUp method that will only be called one before your Indicator/Strategy is being run.

    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cls71, Today, 04:45 AM
    0 responses
    1 view
    0 likes
    Last Post cls71
    by cls71
     
    Started by mjairg, 07-20-2023, 11:57 PM
    3 responses
    213 views
    1 like
    Last Post PaulMohn  
    Started by TheWhiteDragon, 01-21-2019, 12:44 PM
    4 responses
    544 views
    0 likes
    Last Post PaulMohn  
    Started by GLFX005, Today, 03:23 AM
    0 responses
    3 views
    0 likes
    Last Post GLFX005
    by GLFX005
     
    Started by XXtrader, Yesterday, 11:30 PM
    2 responses
    12 views
    0 likes
    Last Post XXtrader  
    Working...
    X