Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CancelOrder on Filled order

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

    CancelOrder on Filled order

    in my strategy, if I pass the long order reference which is already filled into CancelOrder, will it place reverse order (10 short) ?

    #2
    Hello nandhumca,

    No, you would need to use the correct method to submit an entry order at that time. To have the platform reverse you need to call the opposite entry order while you are in a position, for example if you had a long position and called EnterShort that will reverse the position.

    Comment


      #3
      I dont want to reverse the order. When I call CancelOrder on allready filled entry order what will happen ? Cancel order is meant for pending orders right ?

      Comment


        #4
        Hello nandhumca,

        If you mean to just exit the position then you would call an exit order. You can't call cancel on an already filled order, that would generate an error and won't place any trades.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        43 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
        30 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
        41 views
        0 likes
        Last Post CarlTrading  
        Working...
        X