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 love2code2trade, Yesterday, 01:45 PM
            4 responses
            28 views
            0 likes
            Last Post love2code2trade  
            Started by funk10101, Today, 09:43 PM
            0 responses
            7 views
            0 likes
            Last Post funk10101  
            Started by pkefal, 04-11-2024, 07:39 AM
            11 responses
            37 views
            0 likes
            Last Post jeronymite  
            Started by bill2023, Yesterday, 08:51 AM
            8 responses
            45 views
            0 likes
            Last Post bill2023  
            Working...
            X