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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      89 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X