Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ExitLongLimit not being updated

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

    ExitLongLimit not being updated

    Hello,

    I have an ExitLongLimit order with the LiveUntilCancelled set to true. This allows me not to be updating the order at every bar.

    Sometimes I need to change the price of the order. In the bar I have tu update it I set the same order with another price:

    MyExitLong = ExitLongLimit(0,true,Position.Quantity,ExitPrice," ","");

    but the order is not updated. I have to cancel it and set it again?

    #2
    guillembm, are you sure you attempt to update the exact same order here? What is the trace orders output showing for this event?

    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks,

      It's possible to know on what line of code does an error happen?

      Comment


        #4
        You can doubleclick on the error listed at the botton, the editor should then take you to it directly.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          This is when compiling. I know it.

          But if an error is displayed on the output window?

          Comment


            #6
            I see now thanks for the clarification. The output window would contain run time error showing also in the log tab, as well as any print state you've got in your code and (if enabled) the TraceOrders output we talked about earlier. Only the print statements could be easily traced back to the exact line of code triggering the output, so for your order issue best is to include a print statement as well when you attempt to update the order so you can align with the trace orders info.
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by aligator, 01-06-2022, 12:14 PM
            4 responses
            233 views
            0 likes
            Last Post john_44573  
            Started by reynoldsn, Today, 05:56 PM
            0 responses
            4 views
            0 likes
            Last Post reynoldsn  
            Started by bortz, 11-06-2023, 08:04 AM
            51 responses
            1,989 views
            0 likes
            Last Post aligator  
            Started by dmking, 11-12-2019, 12:31 PM
            4 responses
            4,150 views
            0 likes
            Last Post jasonw
            by jasonw
             
            Started by roblogic, Today, 04:31 PM
            0 responses
            10 views
            0 likes
            Last Post roblogic  
            Working...
            X