Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Resubmit order

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

    Resubmit order

    I am running a managed strategy that submits entry stop live until cancelled orders however I wanted to have certain 'blackout' periods of the day where these orders wouldn't trigger...

    I don't think there is anyway to do that once the order has been submitted, but is there a way to 'copy' the order, cancel it during these periods, then resubmit it?

    Thanks

    #2
    Hello and thank you for your post,

    The following is an example of how to create a blackout period with a time filter: http://www.ninjatrader.com/support/f...ead.php?t=3226

    You can then use IOrder to track the state of an order and cancel it at the desired time: http://www.ninjatrader.com/support/h...tml?iorder.htm

    You could check to see if the order was not filled
    if (order.OrderState != OrderState.Filled)

    An example of using IOrder and OnOrderUpdate() to manage orders: http://www.ninjatrader.com/support/f...ead.php?t=7499

    An example of using CancelOrder(): http://www.ninjatrader.com/support/f...ad.php?t=18890

    Please let me know if I can be of further assistance.
    LanceNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    649 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    370 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    576 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X