Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Moving a target manually

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

    Moving a target manually

    I have entered a long position, and have added a stop and target via the OnExecution event. That worked fine, then I tried to move my target by doing the following:
    1. Cancel the original target.
    2. In the OnOrderUpdate, I added my new target once the cancellation was confirmed.
    3. Then received the following Trace Order message: "Ignored PlaceOrder...Reason= There already is a matching, terminal exit orderin place


    The order cancellation was confirmed in the trace order message, so I know there is no matching order. Unless it is just a timing thing with OnExection. Could this be because the new target was added in the OnOrderUpdate event, instead of the OnExecution event?
    My original target was entered in the OnExecution event as per the samples, but I put the code to add the replacement target in the OnOrderUpdate because I needed to receive the cancellation confirmation.
    If this is the reason for the error, how can I receive the cancellation confirmation, AND place the new target code in OnExecution?

    #2
    astrolobe, please try just resubmitting the new target at the new price.

    Comment


      #3
      Thanks Bertrand, that was exactly what I was looking for.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      637 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      366 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      107 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      571 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X