Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

submitting ExitLongAtLimit() etc with new price and label only changes price

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

    submitting ExitLongAtLimit() etc with new price and label only changes price

    I have 2 exit methods, an initial target and a secondary target that I bring into action sometimes. In the Strategy Analyzer, I'm trying to see how common the secondary target is in comparison to the first.

    However in the trades tab & the exit name column, I only see the exit name of the first target on all the exits, despite the fact that the secondary target is frequently used, as evidenced from debugging checks.

    My exit orders are entered GTC so the secondary targets presumably replace the initial targets, updating the price. However the exit label isn't changed.

    Is there a purpose for this or have I stumbled on an oversight in the coding?

    I can't see any benefit to the way it is, and in fact from my POV trying to analyze my exits, this is a hindrance.

    Thanks

    #2
    Closely related to that is another issue with the Strategy Analyzer's Performance Orders tab.

    This only shows the final state of the orders when they were either filled or cancelled and it doesn't show the updates.

    It would be very useful to see the updates to the orders as well.

    Comment


      #3
      adamus,

      Is this in contrast to what you would see on the charts if the strategy executes those orders?

      Were you giving both targets a unique name in your code?

      If you just resubmit the target at a new, updated price, the intial order name is continued to be used.

      For the SA orders tab - correct it would show the closed state only, thanks for the suggestion.

      Comment


        #4
        Originally posted by NinjaTrader_Bertrand View Post
        Is this in contrast to what you would see on the charts if the strategy executes those orders?

        Were you giving both targets a unique name in your code?

        If you just resubmit the target at a new, updated price, the intial order name is continued to be used.
        I am looking on the chart tab and on the orders tab and the names are the same.

        I was giving the targets different names - xlFirstTarget and xlSecondTarget for instance. In my code. Why do you ask? Is there any other way to name the targets?

        So essentially what you are saying is that changing an order by calling ExitLongLimit(0.8990, "xlSecondTarget", "longEntry") will only change the price on the existing "xlFirstTarget" open Sell Limit - it won't change the name from xlFirstTarget to xlSecondTarget?

        If so, then my original question again: why? Is there any point in ignoring the new label I give?

        Comment


          #5
          Correct, if you resubmit the order you're not changing the label or name, you're just amending it in price. If you need a fresh label, you need to Cancel the working one and resubmit as a new order.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          606 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          353 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          560 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          561 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X