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 traderqz, Today, 12:06 AM
            2 responses
            3 views
            0 likes
            Last Post traderqz  
            Started by RideMe, 04-07-2024, 04:54 PM
            5 responses
            28 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by f.saeidi, Today, 08:13 AM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by DavidHP, Today, 07:56 AM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_Erick  
            Started by kujista, Today, 06:23 AM
            3 responses
            11 views
            0 likes
            Last Post kujista
            by kujista
             
            Working...
            X