Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Detect Suspended
Collapse
X
-
Detect Suspended
If IsSuspendedWhileInactive is true (which it is, by default), and NinjaTrader is going to suspend the indicator (let's say, perhaps, the user switched another workspace to be active), this should trigger an event in any running NinjaScript before the suspend takes place, and another event when calculations resume. It could look something like this OnIsSuspendedChange(bool IsSuspended). It is not necessary to allow the indicator to abort the suspension - after all, if the indicator did not want to be suspended it would set IsSuspendedWhileInactive to false. But, this gives the indicator a way to detect when it's getting ready to suspend and a cleaner way to detect when it's been resumed - this way, resources can be handled better and it can incorporate any needed custom logic for these situations in the best way.Tags: None
- Likes 1
-
Hello QuantKey_Bruce,
Thanks for your post.
I have submitted your feature request to the Development team. This request is being tracked under the number SFT-6198.
As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted on the Release Notes page of the Help Guide.
Release Notes — https://ninjatrader.com/support/help...ease_notes.htm<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
-
Hello bltdavid,
Thanks for your note.
I have added your vote to this feature request.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
-
Hello jeronymite,
Thanks for your notes.
I have added your vote to this feature request.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
-
Yes, except that if it's suspended, it isn't running anymore so you don't get to see the flag during OnBarUpdate, OnMarketData, etc. unless you're perhaps executing a timer possibly? That's why I asked for an event - so we would be notified right BEFORE it suspends, rather than after it's already suspended. But, yes, absolutely, I agree with you wholeheartedly - anything is better than nothing.Originally posted by jeronymite View Post+1 please. I'd even settle for something as simple as a flag for the indicator that indicated its status (IsSuspended). Not unreasonable as an additional way to check these things.
Thanks.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
553 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
100 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
543 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
546 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment