Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Strategy Disabled Alert

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

    Strategy Disabled Alert

    How can I receive an alert via email that a live strategy has been disabled? Alternatively, how can I receive an alert that the strategy's data feed has disconnected?

    #2
    jlkramer16,
    Thanks for your post.

    You would not be able to use Share() inside State.Terminated, so I am not sure what logic would be required to accomplish this. If you want to do something within the context of a connection status change you can use OnConnectionStatusUpdate().

    Please see the following link for more information: https://ninjatrader.com/support/help...atusupdate.htm
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Thank you. Is there a way to prevent a strategy from disabling despite it losing connection? Or at least make the time the disconnection lasts before disabling greater?

      Comment


        #4
        jlkramer16,

        You could do that with the ConnectionLossHandling property set to KeepRunning

        Josh G.NinjaTrader Customer Service

        Comment


          #5
          Anyway to avoid disabling strategies when an account disconnects? Not sure if this is the same situation as a data feed. What I am trying to solve here is IB's TWS daily restart disabling all my strategies.

          Comment


            #6
            jlkramer16,

            In the context of the ConnectionLossHandling property, I would expect an account to be handled the same was as a regular data feed
            Josh G.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by judysamnt7, 03-13-2023, 09:11 AM
            4 responses
            59 views
            0 likes
            Last Post DynamicTest  
            Started by ScottWalsh, Today, 06:52 PM
            4 responses
            36 views
            0 likes
            Last Post ScottWalsh  
            Started by olisav57, Today, 07:39 PM
            0 responses
            7 views
            0 likes
            Last Post olisav57  
            Started by trilliantrader, Today, 03:01 PM
            2 responses
            21 views
            0 likes
            Last Post helpwanted  
            Started by cre8able, Today, 07:24 PM
            0 responses
            10 views
            0 likes
            Last Post cre8able  
            Working...
            X