Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Auto enable a stragey

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

    Auto enable a stragey

    Hi

    I see that you can programmatically disable a strategy but how does one programmatically enable a strategy?

    Also, I finding that my strategy disables itself when chart trader fires an order. How can I stop this happening?

    #2
    Hello Boreland,

    Thank you for your post.

    You cannot enable a strategy programmatically. However, you can set conditions to limit when your NinjaScript strategy begins to place orders such as a time filter to trade only in certain hours of the day. You can find information on this at the following link: http://www.ninjatrader.com/support/f...ead.php?t=3226

    If you are placing orders to manage positions from your Chart Trader for the same account and instrument your Strategy is trading you will see the Strategy disabled.

    Please let me know if I may be of further assistance.

    Comment


      #3
      This is not good. I do not want the strategy auto disabled if a I use the chart trader. Surely I can re-enable a strategy via the strategy general properties field. Perhaps you could given me the getter/setter name?

      Comment


        #4
        Hello Boreland,

        Thank you for your response.

        Unfortunately, you cannot use the Chart Trader to manage positions from your NinjaScript Strategy. There is no work around for this.

        Comment


          #5
          I'm not using chart trader to manage strategy positions. My question relates to the fact that the strategy becomes disabled when the strategy fires off on order.

          Comment


            #6
            Hello Boreland,

            Thank you for your response.

            I do not understand your inquiry.
            I finding that my strategy disables itself when chart trader fires an order.
            My question relates to the fact that the strategy becomes disabled when the strategy fires off on order.
            So is the strategy or Chart Trader sending the order? Chart Trader is only a manual order entry window, it will not fire off orders on it's own.

            I look forward to your response.

            Comment


              #7
              Hallo,
              when i try to set a stoporder by ExitLongStop to protect my Long-Position and meanwhile the course has undershot the stopvalue of the ExitLongStop I get warning Popups and my strategy is autodisabled.

              Is it possible to change this autodisable-behaviour because i try to catch this error and set a new Stopvalue far away from the actual course ?

              Thank You

              Rolf Theus

              Comment


                #8
                Hi Rolf, this has to do with the default RealtimeErrorHandling for your strategy, a rejected order would cause the disable here - https://www.ninjatrader.com/support/...orhandling.htm

                You can also set it to .TakeNoAction and self manage the rejection...

                Comment


                  #9
                  Originally posted by NinjaTrader_Bertrand View Post
                  Hi Rolf, this has to do with the default RealtimeErrorHandling for your strategy, a rejected order would cause the disable here - www.ninjatrader.com/support/helpGuides/nt7/realtimeerrorhandling.htm

                  You can also set it to .TakeNoAction and self manage the rejection...
                  Hallo Bertrand

                  Thank you, works fine. Is there a possibillity not to popup the warning.windows ?
                  Thank You
                  Rolf Theus

                  Comment


                    #10
                    Great Rolf, you the pop up for the rejected order seen? Unfortunately that could not be suppressed but we have this handling on our list to look into improving.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    650 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    370 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    109 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    574 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    577 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X