Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Detect Suspended

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

    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.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    #2
    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
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      +1

      Please add my vote.

      Comment


        #4
        Hello bltdavid,

        Thanks for your note.

        I have added your vote to this feature request.
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          +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.
          Multi-Dimensional Managed Trading
          jeronymite
          NinjaTrader Ecosystem Vendor - Mizpah Software

          Comment


            #6
            Hello jeronymite,

            Thanks for your notes.

            I have added your vote to this feature request.
            Brandon H.NinjaTrader Customer Service

            Comment


              #7
              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.
              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.
              Bruce DeVault
              QuantKey Trading Vendor Services
              NinjaTrader Ecosystem Vendor - QuantKey

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by fx.practic, 10-15-2013, 12:53 AM
              5 responses
              5,404 views
              0 likes
              Last Post Bidder
              by Bidder
               
              Started by Shai Samuel, 07-02-2022, 02:46 PM
              4 responses
              95 views
              0 likes
              Last Post Bidder
              by Bidder
               
              Started by DJ888, Yesterday, 10:57 PM
              0 responses
              8 views
              0 likes
              Last Post DJ888
              by DJ888
               
              Started by MacDad, 02-25-2024, 11:48 PM
              7 responses
              159 views
              0 likes
              Last Post loganjarosz123  
              Started by Belfortbucks, Yesterday, 09:29 PM
              0 responses
              8 views
              0 likes
              Last Post Belfortbucks  
              Working...
              X