Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CancelOrder()

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

    CancelOrder()

    I'm using a two-contact system. The CancelOrder() method works perfectly by canceling the orderentry2 but is not canceling orderentry1.

    EnterShortStopMarket(0, true, 1, mfe[0], @"myEntryOrderShort1");
    EnterShortStopMarket(0, true, 1, mfe[0], @"myEntryOrderShort2");
    barNumberOfOrder = CurrentBar;

    Any reason why? Thanks.

    #2
    Hello AdeptistJune,

    I note you already have a post on this subject to which I have replied:

    I'm using CancelOrder(). It works perfectly in my first strategy which uses one contract, but in my second strategy which uses two contracts the CancelOrder() is not working (not canceling the order but leaving them open until filled. When a canceled other is not canceled, as it says below: 1. This method sends a cancel


    We would ask that you refrain from making multiple posts on the same topic as this may cause multiple technicians to be working on the same issue, tying up our resources and impacting our ability to get answers to all our users quickly.

    Please reply back on the original thread and I will be happy to assist.

    Thanks in advance.

    Comment


      #3
      I posted that last night and never received a response. So I didn't know if the post was seen or accidentally overlooked. My apologies.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      384 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      249 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      210 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      297 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      260 views
      0 likes
      Last Post CarlTrading  
      Working...
      X