• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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?

    http://www.ninjatrader.com/support/f...ead.php?t=3627
    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 Lisa Marshall, 01-25-2020, 04:11 PM
            1 response
            14 views
            0 likes
            Last Post NinjaTrader_Jim  
            Started by utilizator, 01-25-2020, 11:36 AM
            2 responses
            32 views
            0 likes
            Last Post utilizator  
            Started by Aporshnev, Today, 08:46 AM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_Tyler  
            Started by fx.practic, Today, 08:54 AM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by fx.practic, Today, 08:50 AM
            2 responses
            4 views
            0 likes
            Last Post fx.practic  
            Working...
            X