Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Rejected

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

    Order Rejected

    Hi,

    I had an open position with a strategy. When the position had to be closed the order has been partially filled and the remaining shares were rejected. When rejected, the system directly shuts off and the remaining position stays open.

    THe message received is: "Strategy 'GB/1a17029fac494065a66c956d4f9b59c1' submitted an order that generated the following error 'OrderRejected'. Strategy has sent cancel requests, attempted to close the position and terminated itself."

    How to avoid the system to terminate when the order has been rejected?

    thanks

    #2
    guillembm, this would be the default behavior for NS strategies with the default realtime error handling (Order rejected resulting in strategy termination), you can change this however in your code providing you monitor closely and take actions if neccessary :

    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks.

      When TakeNoAction is on:
      - If I have an exit position that is rejected, marketposition will appear as flat?
      - How can I terminate a strategy myself from code?

      thanks

      Comment


        #4
        You can call Disable() in your strategy - http://www.ninjatrader.com/support/h...t7/disable.htm

        I don't follow on your marketposition comment, do you mean if the strategy position would report as flat eventhough the exit got rejected?
        BertrandNinjaTrader Customer Service

        Comment


          #5
          THat's exactly what I mean.

          Comment


            #6
            With TakeNoAction, the market position would be unchanged, the strategy would not attempt any closing of it if the exit order was rejected.
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Aviram Y, Today, 05:29 AM
            0 responses
            2 views
            0 likes
            Last Post Aviram Y  
            Started by quantismo, 04-17-2024, 05:13 PM
            3 responses
            27 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by ScottWalsh, 04-16-2024, 04:29 PM
            7 responses
            34 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by cls71, Today, 04:45 AM
            0 responses
            6 views
            0 likes
            Last Post cls71
            by cls71
             
            Started by mjairg, 07-20-2023, 11:57 PM
            3 responses
            218 views
            1 like
            Last Post PaulMohn  
            Working...
            X