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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      54 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      131 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      73 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      44 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X