Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    603 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    349 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    104 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    560 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    560 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X