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 Hwop38, 05-04-2026, 07:02 PM
|
0 responses
151 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
304 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
244 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
345 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
175 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment