Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Kate W.NinjaTrader Customer Service

    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 NJA_MC, 01-03-2021, 10:34 PM
      11 responses
      147 views
      0 likes
      Last Post wzgy0920  
      Started by sidlercom80, 10-28-2023, 08:49 AM
      173 responses
      2,367 views
      0 likes
      Last Post jeronymite  
      Started by Mindset, Yesterday, 10:38 PM
      0 responses
      10 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by JesseOffshore, Yesterday, 09:40 PM
      0 responses
      6 views
      0 likes
      Last Post JesseOffshore  
      Started by WHICKED, 04-26-2024, 12:56 PM
      4 responses
      144 views
      0 likes
      Last Post WHICKED
      by WHICKED
       
      Working...
      X