• 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

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, 07: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.

    http://www.ninjatrader.com/support/h.../onstartup.htm
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rickyblah12, Today, 05:01 PM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by jtrading82, 10-11-2019, 05:07 PM
    8 responses
    80 views
    1 like
    Last Post sledge
    by sledge
     
    Started by MARTIN MARTIN, Yesterday, 01:01 PM
    3 responses
    41 views
    0 likes
    Last Post MARTIN MARTIN  
    Started by NickyD, Today, 11:42 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by cupir2, Today, 11:25 AM
    3 responses
    17 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X