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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      45 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      21 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      31 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X