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 Kaledus, Today, 01:29 PM
            3 responses
            9 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by frankthearm, Yesterday, 09:08 AM
            14 responses
            47 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by gentlebenthebear, Today, 01:30 AM
            2 responses
            13 views
            0 likes
            Last Post gentlebenthebear  
            Started by PaulMohn, Today, 12:36 PM
            2 responses
            17 views
            0 likes
            Last Post PaulMohn  
            Started by Conceptzx, 10-11-2022, 06:38 AM
            2 responses
            56 views
            0 likes
            Last Post PhillT
            by PhillT
             
            Working...
            X