Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator "paused" when NinjaTrader Application is in the background

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

    Indicator "paused" when NinjaTrader Application is in the background

    Hi,

    I have created an indicator that checks for a few conditions, once fulfilled - I'm getting an alert via an HTTP post request.
    I have noticed that if the NT window is in the background for some time, the alert will only be sent after I return to the NT window.

    What can I do to ensure that the indicator will always "work"?

    Thank you


    #2
    Hello liadmz,

    Thank you for your note.

    Indicators have a property called IsSuspendedWhenInactive. By default, this property is set to true to save CPU cycles. Basically, when an indicator is in an inactive window it's considered suspended. By default, events in OnBarUpdate() will not be processed while the indicator is suspended, internal NinjaScript functions such as Alert(), PlaySound(), Share(), Print(), etc - or any other method that would be used to notify a user of activity will NOT be processed until the indicator is no longer in a suspended state.

    You can set this property to false to allow the indicator to continue processing while in an inactive window.



    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    649 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    370 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    576 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X