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 kevinenergy, 02-17-2023, 12:42 PM
            117 responses
            2,764 views
            1 like
            Last Post jculp
            by jculp
             
            Started by Mongo, Today, 11:05 AM
            5 responses
            15 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by SightCareAubetter, Today, 12:55 PM
            0 responses
            3 views
            0 likes
            Last Post SightCareAubetter  
            Started by traderqz, Today, 12:06 AM
            8 responses
            16 views
            0 likes
            Last Post traderqz  
            Started by SightCareAubetter, Today, 12:50 PM
            0 responses
            2 views
            0 likes
            Last Post SightCareAubetter  
            Working...
            X