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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    67 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    36 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    59 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X