Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Closing Unmanaged Order

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

    Closing Unmanaged Order

    When using unmanaged orders how do we go about cancelling pending limit orders? Is there an example somewhere?

    #2
    Hello r3n3v,

    Thank you for your post.

    The unmanaged approach uses CancelOrder() for cancellations, including cancelling a pending limit order. The help guide page for CancelOrder(), which includes an example of how this method is used with an order object, may be found here:


    In the example, the order object myEntryOrder was submitted via the managed approach, but you would use the same idea with the unmanaged approach by assigning your order to an order object. Then you could set a condition to cancel the order with the following action:
    CancelOrder(myOrderObject);

    Please let us know if we may be of further assistance.

    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